Class ConcurrentTestCommandExecutor.Sync

  • Enclosing class:

    public static class ConcurrentTestCommandExecutor.Sync
    extends java.lang.Object
    Synchronization object that allows multiple ConcurrentTestCommandExecutors to execute commands in lock-step. Requires that all ConcurrentTestCommandExecutors have the same number of commands.
    • Field Summary

      Modifier and Type Field Description
      private int numThreads  
      private int numWaiting  
    • Constructor Summary

      Constructor Description
      Sync​(int numThreads)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void waitForOthers()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • numThreads

        private int numThreads
      • numWaiting

        private int numWaiting
    • Constructor Detail

      • Sync

        Sync​(int numThreads)
    • Method Detail

      • waitForOthers

        void waitForOthers()
                    throws java.lang.InterruptedException