Class CountDownLauncher


  • public abstract class CountDownLauncher
    extends java.lang.Object
    Counts down the calls countDown() and the last reaching zero executes the job().
    Since:
    3.0.0-M5
    Author:
    Tibor Digana (tibor17)
    • 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
    • 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