Package com.db4o.foundation
Class Runtime4
- java.lang.Object
-
- com.db4o.foundation.Runtime4
-
public class Runtime4 extends java.lang.ObjectA 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 booleanretry(long millisecondsTimeout, int millisecondsBetweenRetries, Closure4<java.lang.Boolean> block)static booleanretry(long millisecondsTimeout, Closure4<java.lang.Boolean> block)Keeps executing a block of code until it either returns true or millisecondsTimeout elapses.static voidsleep(long millis)sleeps without checked exceptionsstatic voidsleepThrowsOnInterrupt(long millis)sleeps with implicit exception
-
-
-
Method Detail
-
sleep
public static void sleep(long millis)
sleeps without checked exceptions
-
sleepThrowsOnInterrupt
public static void sleepThrowsOnInterrupt(long millis) throws RuntimeInterruptedExceptionsleeps with implicit exception- Throws:
RuntimeInterruptedException
-
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)
-
-