public interface FencedMainThreadExecutable extends MainThreadExecutable
MainThreadExecutable
interface which allows to run unfenced runnables in the
main thread.Modifier and Type | Method and Description |
---|---|
<V> CompletableFuture<V> |
callAsyncWithoutFencing(Callable<V> callable,
Time timeout)
Run the given callable in the main thread without attaching a fencing token.
|
void |
runAsyncWithoutFencing(Runnable runnable)
Run the given runnable in the main thread without attaching a fencing token.
|
callAsync, runAsync, scheduleRunAsync
void runAsyncWithoutFencing(Runnable runnable)
runnable
- to run in the main thread without validating the fencing token.<V> CompletableFuture<V> callAsyncWithoutFencing(Callable<V> callable, Time timeout)
V
- type of the callable resultcallable
- to run in the main thread without validating the fencing token.timeout
- for the operationCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.