Uses of Interface
com.sap.cloud.sdk.cloudplatform.thread.ThreadContext
Package
Description
-
Uses of ThreadContext in com.sap.cloud.sdk.cloudplatform.requestheader
Modifier and TypeMethodDescriptionvoid
RequestHeaderThreadContextListener.beforeInitialize
(ThreadContext threadContext) -
Uses of ThreadContext in com.sap.cloud.sdk.cloudplatform.security
Modifier and TypeMethodDescriptionvoid
AuthTokenThreadContextListener.afterInitialize
(ThreadContext threadContext) void
BasicAuthenticationThreadContextListener.afterInitialize
(ThreadContext threadContext) -
Uses of ThreadContext in com.sap.cloud.sdk.cloudplatform.security.principal
Modifier and TypeMethodDescriptionvoid
PrincipalThreadContextListener.afterInitialize
(ThreadContext threadContext) -
Uses of ThreadContext in com.sap.cloud.sdk.cloudplatform.tenant
Modifier and TypeMethodDescriptionvoid
TenantThreadContextListener.afterInitialize
(ThreadContext threadContext) -
Uses of ThreadContext in com.sap.cloud.sdk.cloudplatform.thread
Modifier and TypeClassDescriptionclass
This class represents the default implementation ofThreadContext
.Modifier and TypeMethodDescriptionDefaultThreadContext.duplicate()
default ThreadContext
ThreadContext.duplicate()
Create a newThreadContext
containing all properties of this context.static ThreadContext
ThreadContextAccessor.getCurrentContext()
Returns the currentThreadContext
.static ThreadContext
ThreadContextAccessor.getCurrentContextOrNull()
Returns the currentThreadContext
or null, if this is not possible.default ThreadContext
ThreadContextFacade.getCurrentContextOrNull()
Returns an instanceThreadContext
or null.ThreadLocalThreadContextFacade.getCurrentContextOrNull()
Modifier and TypeMethodDescriptionstatic io.vavr.control.Try<ThreadContext>
ThreadContextAccessor.tryGetCurrentContext()
Returns aTry
of the currentThreadContext
.io.vavr.control.Try<ThreadContext>
ThreadContextFacade.tryGetCurrentContext()
Returns aTry
of the currentThreadContext
.io.vavr.control.Try<ThreadContext>
ThreadLocalThreadContextFacade.tryGetCurrentContext()
Modifier and TypeMethodDescriptiondefault void
ThreadContextListener.afterInitialize
(ThreadContext threadContext) Invoked after the currentThreadContext
is initialized and set.default void
ThreadContextListener.beforeInitialize
(ThreadContext threadContext) Invoked before the currentThreadContext
is initialized and set.void
DefaultThreadContextExecutorService.execute
(Runnable command, ThreadContext threadContext) static void
ThreadContextExecutors.execute
(Runnable command, ThreadContext threadContext) Attach aThreadContext
to the given command and execute it.void
ThreadContextExecutorService.execute
(Runnable command, ThreadContext threadContext) Attach aThreadContext
to the given command and execute it.void
ThreadContextFacade.setCurrentContext
(ThreadContext threadContext) Sets the currentThreadContext
.void
ThreadLocalThreadContextFacade.setCurrentContext
(ThreadContext threadContext) Future<?>
DefaultThreadContextExecutorService.submit
(Runnable task, ThreadContext threadContext) <T> Future<T>
DefaultThreadContextExecutorService.submit
(Runnable task, T result, ThreadContext threadContext) <T> Future<T>
DefaultThreadContextExecutorService.submit
(Callable<T> task, ThreadContext threadContext) static <T> Future<T>
ThreadContextExecutors.submit
(Callable<T> task, ThreadContext threadContext) Attach aThreadContext
to the given task and execute it.Future<?>
ThreadContextExecutorService.submit
(Runnable task, ThreadContext threadContext) Attach aThreadContext
to the given task and execute it.<T> Future<T>
ThreadContextExecutorService.submit
(Runnable task, T result, ThreadContext threadContext) Attach aThreadContext
to the given task and execute it.<T> Future<T>
ThreadContextExecutorService.submit
(Callable<T> task, ThreadContext threadContext) Attach aThreadContext
to the given task and execute it.static ThreadContextExecutor
ThreadContextExecutor.using
(ThreadContext context) Create aThreadContextExecutor
using a duplicate of the providedThreadContext
with preset properties.