Class ConcurrentGenerateSpec

java.lang.Object
me.ahoo.cosid.test.ConcurrentGenerateSpec
All Implemented Interfaces:
TestSpec

public class ConcurrentGenerateSpec extends Object implements TestSpec
Concurrent Generate Spec .
  • Constructor Details

    • ConcurrentGenerateSpec

      public ConcurrentGenerateSpec(IdGenerator... idGenerators)
    • ConcurrentGenerateSpec

      public ConcurrentGenerateSpec(int concurrentThreads, long idSize, IdGenerator... idGenerators)
  • 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()
      Specified by:
      verify in interface TestSpec