Class Runtime4


  • public class Runtime4
    extends java.lang.Object
    A collection of static methods that should be part of the runtime environment but are not.
    • Constructor Summary

      Constructors 
      Constructor Description
      Runtime4()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean retry​(long millisecondsTimeout, int millisecondsBetweenRetries, Closure4<java.lang.Boolean> block)  
      static boolean retry​(long millisecondsTimeout, Closure4<java.lang.Boolean> block)
      Keeps executing a block of code until it either returns true or millisecondsTimeout elapses.
      static void sleep​(long millis)
      sleeps without checked exceptions
      static void sleepThrowsOnInterrupt​(long millis)
      sleeps with implicit exception
      • Methods inherited from class java.lang.Object

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

      • Runtime4

        public Runtime4()
    • Method Detail

      • sleep

        public static void sleep​(long millis)
        sleeps without checked exceptions
      • retry

        public static boolean retry​(long millisecondsTimeout,
                                    Closure4<java.lang.Boolean> block)
        Keeps executing a block of code until it either returns true or millisecondsTimeout elapses.
      • retry

        public static boolean retry​(long millisecondsTimeout,
                                    int millisecondsBetweenRetries,
                                    Closure4<java.lang.Boolean> block)