Class ConcurrentGenerateSpec

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

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

    • DEFAULT_CONCURRENT_THREADS

      public static final int DEFAULT_CONCURRENT_THREADS
      See Also:
    • DEFAULT_ID_SIZE

      public static final long DEFAULT_ID_SIZE
      See Also:
    • DEFAULT_TIMEOUT

      public static final Duration DEFAULT_TIMEOUT
  • Constructor Details

    • ConcurrentGenerateSpec

      public ConcurrentGenerateSpec(IdGenerator... idGenerators)
    • ConcurrentGenerateSpec

      public ConcurrentGenerateSpec(int concurrentThreads, long idSize, IdGenerator... idGenerators)
    • ConcurrentGenerateSpec

      public ConcurrentGenerateSpec(int concurrentThreads, long idSize, Duration timeout, 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