public abstract static class Async.ThrowingRunnable extends java.lang.Object implements java.lang.Runnable
Runnable, but allows the runOrThrow() method to throw an exception.
If the exception is an instance of RuntimeException, then it will be re-thrown, otherwise it will be
simply logged.
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
LOGGER |
| Constructor and Description |
|---|
ThrowingRunnable() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
abstract void |
runOrThrow() |
public static final java.util.logging.Logger LOGGER
public ThrowingRunnable()
public final void run()
run in interface java.lang.Runnablepublic abstract void runOrThrow() throws java.lang.Exception
java.lang.Exception