CallbackCallback.Completable, Callback.Nested, CompletableCallback, CountingCallback, FutureCallback, IteratingCallback, IteratingNestedCallback, SharedBlockingCallback.Blockerpublic interface Invocable
A task (typically either a Runnable or Callable
that declares how it will behave when invoked:
Static methods and are provided that allow the current thread to be tagged
with a ThreadLocal to indicate if it has a blocking invocation type.
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
Invocable.InvocationType |
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.ThreadLocal<java.lang.Boolean> |
__nonBlocking |
| Modifier and Type | Method | Description |
|---|---|---|
default Invocable.InvocationType |
getInvocationType() |
|
static Invocable.InvocationType |
getInvocationType(java.lang.Object o) |
Get the invocation type of an Object.
|
static void |
invokeNonBlocking(java.lang.Runnable task) |
Invoke a task with the calling thread, tagged to indicate
that it will not block.
|
static boolean |
isNonBlockingInvocation() |
Test if the current thread has been tagged as non blocking
|
static boolean isNonBlockingInvocation()
static void invokeNonBlocking(java.lang.Runnable task)
task - The task to invoke.static Invocable.InvocationType getInvocationType(java.lang.Object o)
o - The object to check the invocation type of.getInvocationType()
used, otherwise Invocable.InvocationType.BLOCKING is returned.default Invocable.InvocationType getInvocationType()
Copyright © 1995–2018 Webtide. All rights reserved.