Class IdSegmentDistributorSpec
java.lang.Object
me.ahoo.cosid.test.segment.distributor.IdSegmentDistributorSpec
- Direct Known Subclasses:
GroupedIdSegmentDistributorSpec
IdSegmentDistributorSpec .
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final long
protected static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected IdSegmentDistributorFactory
factory()
void
void
void
protected abstract IdSegmentDistributorFactory
void
getGroup()
void
getName()
void
void
void
getStep()
void
void
void
void
void
void
void
void
void
protected 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()
-