Class IdSegmentDistributor.Mock

java.lang.Object
me.ahoo.cosid.segment.IdSegmentDistributor.Mock
All Implemented Interfaces:
Grouped, IdSegmentDistributor
Enclosing interface:
IdSegmentDistributor

public static class IdSegmentDistributor.Mock extends Object implements IdSegmentDistributor
  • Constructor Details

    • Mock

      public Mock()
    • Mock

      public Mock(long step, int tps)
      ctor.
      Parameters:
      step - 单次获取IdSegment的区间长度
      tps - 发号器的TPS,用于模拟网络IO请求的等待时常
  • Method Details