Package com.db4o.foundation
Class Runtime4
- java.lang.Object
-
- com.db4o.foundation.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 exceptionsstatic void
sleepThrowsOnInterrupt(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 RuntimeInterruptedException
sleeps 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)
-
-