Class CountDownLauncher

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.atomic.AtomicInteger countDown  
    • Constructor Summary

      Constructors 
      Constructor Description
      CountDownLauncher​(int count)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void countDown()  
      protected abstract void job()  
      • Methods inherited from class java.lang.Object

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

      • countDown

        private final java.util.concurrent.atomic.AtomicInteger countDown
    • Constructor Detail

      • CountDownLauncher

        public CountDownLauncher​(int count)
    • Method Detail

      • job

        protected abstract void job()
                             throws java.io.IOException,
                                    java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • countDown

        public void countDown()
                       throws java.io.IOException,
                              java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException