Class IdSegmentDistributorSpec

java.lang.Object
me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
Direct Known Subclasses:
GroupedIdSegmentDistributorSpec

public abstract class IdSegmentDistributorSpec extends Object
IdSegmentDistributorSpec .
  • Field Details

  • Constructor Details

    • IdSegmentDistributorSpec

      public IdSegmentDistributorSpec()
  • Method Details

    • getFactory

      protected abstract IdSegmentDistributorFactory getFactory()
    • factory

      protected IdSegmentDistributorFactory factory()
    • getGroup

      @Test public void getGroup()
    • getNamespace

      @Test public void getNamespace()
    • getName

      @Test public void getName()
    • getNamespacedName

      @Test public void getNamespacedName()
    • getStep

      @Test public void getStep()
    • getStepWithSegments

      @Test public void getStepWithSegments()
    • nextMaxId

      @Test public void nextMaxId()
    • nextMaxIdWithStep

      @Test public void nextMaxIdWithStep()
    • setMaxIdBack

      protected abstract <T extends IdSegmentDistributor> void setMaxIdBack(T distributor, long maxId)
    • nextMaxIdWhenBack

      @Test public void nextMaxIdWhenBack()
    • nextIdSegment

      @Test public void nextIdSegment()
    • nextIdSegmentWithTtl

      @Test public void nextIdSegmentWithTtl()
    • nextIdSegmentWithSegmentsAndTtl

      @Test public void nextIdSegmentWithSegmentsAndTtl()
    • nextIdSegmentChain

      @Test public void nextIdSegmentChain()
    • nextMaxIdConcurrent

      @Test public void nextMaxIdConcurrent()
    • generateConcurrent

      @Test public void generateConcurrent()
    • generateConcurrentOfChain

      @Test public void generateConcurrentOfChain()
    • generateMultiInstanceConcurrent

      @Test public void generateMultiInstanceConcurrent()