Package me.ahoo.cosid.test
Class ConcurrentGenerateSpec
java.lang.Object
me.ahoo.cosid.test.ConcurrentGenerateSpec
- All Implemented Interfaces:
TestSpec
Concurrent Generate Spec .
-
Constructor Summary
ConstructorDescriptionConcurrentGenerateSpec
(int concurrentThreads, long idSize, IdGenerator... idGenerators) ConcurrentGenerateSpec
(IdGenerator... idGenerators) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertGlobalEach
(long previousId, long id) protected void
assertGlobalFirst
(long id) protected void
assertGlobalLast
(long lastId) protected void
assertSingleEach
(long previousId, long id) int
long
void
verify()
-
Constructor Details
-
ConcurrentGenerateSpec
-
ConcurrentGenerateSpec
-
-
Method Details
-
getConcurrentThreads
public int getConcurrentThreads() -
getIdSize
public long getIdSize() -
assertSingleEach
protected void assertSingleEach(long previousId, long id) -
assertGlobalFirst
protected void assertGlobalFirst(long id) -
assertGlobalEach
protected void assertGlobalEach(long previousId, long id) -
assertGlobalLast
protected void assertGlobalLast(long lastId) -
verify
public void verify()
-