Callable interface.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T extends @Nullable Object> AsyncCallable | asAsyncCallable(Callable<T> callable, ListeningExecutorService listeningExecutorService)
Creates an |
| public static <T extends @Nullable Object> Callable | returning(T value)
Creates a |
| pack-priv static <T extends @Nullable Object> Callable | threadRenaming(Callable<T>
The callable to wrap callable, Supplier<String> The supplier of thread names, nameSupplier)get will be called once
for each invocation of the wrapped callable.Wraps the given callable such that for the duration of |
| pack-priv static Runnable | threadRenaming(Runnable
The Runnable to wrap task, Supplier<String> The supplier of thread names, nameSupplier)get will be called once
for each invocation of the wrapped callable.Wraps the given runnable such that for the duration of |
| private static boolean | trySetName(String threadName, Thread currentThread)
Tries to set name of the given |
| Callables | back to summary |
|---|---|
| private Callables() | |
| asAsyncCallable | back to summary |
|---|---|
| public static <T extends @Nullable Object> AsyncCallable Creates an The
| |
| returning | back to summary |
|---|---|
| public static <T extends @Nullable Object> Callable Creates a | |
| threadRenaming | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> Callable Wraps the given callable such that for the duration of
| |
| threadRenaming | back to summary |
|---|---|
| pack-priv static Runnable threadRenaming(Runnable task, Supplier<String> nameSupplier) Wraps the given runnable such that for the duration of
| |
| trySetName | back to summary |
|---|---|
| private static boolean trySetName(String threadName, Thread currentThread) Tries to set name of the given
| |