Class Waiter


  • public class Waiter
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  Waiter.Condition  
    • Constructor Summary

      Constructors 
      Constructor Description
      Waiter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean waitFor​(Waiter.Condition condition, java.util.concurrent.TimeUnit unit, long timeout, java.util.concurrent.TimeUnit parkUnit, long parkTime)
      This method will wait for the condition.result to be true or a timeout has ocurred.
      • Methods inherited from class java.lang.Object

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

      • Waiter

        public Waiter()
    • Method Detail

      • waitFor

        public static boolean waitFor​(Waiter.Condition condition,
                                      java.util.concurrent.TimeUnit unit,
                                      long timeout,
                                      java.util.concurrent.TimeUnit parkUnit,
                                      long parkTime)
        This method will wait for the condition.result to be true or a timeout has ocurred. it will return the last result.