Class IdSegmentDistributorSpec
java.lang.Object
me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- Direct Known Subclasses:
GroupedIdSegmentDistributorSpec
IdSegmentDistributorSpec .
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final longprotected static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IdSegmentDistributorFactoryfactory()voidvoidvoidprotected abstract IdSegmentDistributorFactoryvoidgetGroup()voidgetName()voidvoidvoidgetStep()voidvoidvoidvoidvoidvoidvoidvoidvoidprotected abstract <T extends IdSegmentDistributor>
voidsetMaxIdBack(T distributor, long maxId)
-
Field Details
-
TEST_OFFSET
protected static final long TEST_OFFSET- See Also:
-
TEST_STEP
protected static final long TEST_STEP- See Also:
-
-
Constructor Details
-
IdSegmentDistributorSpec
public IdSegmentDistributorSpec()
-
-
Method Details
-
getFactory
-
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
-
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()
-