Uses of Class
com.sap.cloud.sdk.cloudplatform.thread.ThreadContextExecutor
-
Uses of ThreadContextExecutor in com.sap.cloud.sdk.cloudplatform.thread
Modifier and TypeMethodDescriptionstatic ThreadContextExecutor
ThreadContextExecutor.fromCurrentContext()
Create aThreadContextExecutor
using the currentThreadContext
, that is being resolved fromThreadContextAccessor
and duplicated with all existing properties.static ThreadContextExecutor
ThreadContextExecutor.fromCurrentOrNewContext()
Create aThreadContextExecutor
using the currentThreadContext
, if one is available.static ThreadContextExecutor
ThreadContextExecutor.fromNewContext()
Create aThreadContextExecutor
using a new instance ofThreadContext
with empty properties.static ThreadContextExecutor
ThreadContextExecutor.using
(ThreadContext context) Create aThreadContextExecutor
using a duplicate of the providedThreadContext
with preset properties.ThreadContextExecutor.withListeners
(ThreadContextListener... listeners) Adds the specified listeners to the life-cycle of theThreadContext
.ThreadContextExecutor.withListeners
(Iterable<ThreadContextListener> listeners) Adds the specified listeners to the life-cycle of theThreadContext
.ThreadContextExecutor.withoutDefaultListeners()
Removes all SDK provided listeners on the classpath from the executor call.ThreadContextExecutor.withoutListeners
(Integer... listenerPriorities) Removes the listeners with the given priorities from the life-cycle of theThreadContext
.ThreadContextExecutor.withoutListeners
(Iterable<Integer> listenerPriorities) Removes the listeners with the given priorities from the life-cycle of theThreadContext
.Modifier and TypeMethodDescriptionvoid
DefaultThreadContextExecutorService.execute
(Runnable command, ThreadContextExecutor threadContextExecutor) static void
ThreadContextExecutors.execute
(Runnable command, ThreadContextExecutor threadContextExecutor) Attach aThreadContextExecutor
to the given command and execute it.void
ThreadContextExecutorService.execute
(Runnable command, ThreadContextExecutor threadContextExecutor) Attach aThreadContextExecutor
to the given command and execute it.Future<?>
DefaultThreadContextExecutorService.submit
(Runnable task, ThreadContextExecutor threadContextExecutor) <T> Future<T>
DefaultThreadContextExecutorService.submit
(Runnable task, T result, ThreadContextExecutor threadContextExecutor) <T> Future<T>
DefaultThreadContextExecutorService.submit
(Callable<T> task, ThreadContextExecutor threadContextExecutor) static <T> Future<T>
ThreadContextExecutors.submit
(Callable<T> task, ThreadContextExecutor threadContextExecutor) Attach aThreadContextExecutor
to the given task and execute it.Future<?>
ThreadContextExecutorService.submit
(Runnable task, ThreadContextExecutor threadContextExecutor) Attach aThreadContextExecutor
to the given task and execute it.<T> Future<T>
ThreadContextExecutorService.submit
(Runnable task, T result, ThreadContextExecutor threadContextExecutor) Attach aThreadContextExecutor
to the given task and execute it.<T> Future<T>
ThreadContextExecutorService.submit
(Callable<T> task, ThreadContextExecutor threadContextExecutor) Attach aThreadContextExecutor
to the given task and execute it.