public final class WriteThread
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
invokeAndWait(java.lang.Runnable runnable)
Schedules
runnable to execute from under IW lock on some thread later and blocks until
the execution is finished. |
static java.util.concurrent.Future<java.lang.Void> |
submit(java.lang.Runnable runnable)
Schedules
runnable to execute from under IW lock on some thread later. |
static <T> java.util.concurrent.Future<T> |
submit(ThrowableComputable<? extends T,?> computable)
Schedules
computable to execute from under IW lock on some thread later. |
public static java.util.concurrent.Future<java.lang.Void> submit(java.lang.Runnable runnable)
runnable
to execute from under IW lock on some thread later.runnable
- the action to runpublic static <T> java.util.concurrent.Future<T> submit(ThrowableComputable<? extends T,?> computable)
computable
to execute from under IW lock on some thread later.T
- return type of scheduled computationcomputable
- the action to runpublic static void invokeAndWait(java.lang.Runnable runnable)
runnable
to execute from under IW lock on some thread later and blocks until
the execution is finished.runnable
- the action to run