public interface ThreadContextService extends ThreadContext
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ThreadContextService.Executor<R,T extends java.lang.Throwable>
Interface to implement for the executeInContext method.
|
static class |
ThreadContextService.Nothing |
| Modifier and Type | Method and Description |
|---|---|
<R,T extends java.lang.Throwable> |
executeInContext(ThreadContextService.Executor<R,T> wrapper)
Execute the wrapper code in the context of the specified user
|
ThreadContext |
getCurrentContext() |
getAttribute, removeAttribute, setAttributeThreadContext getCurrentContext()
ThreadContext<R,T extends java.lang.Throwable> R executeInContext(ThreadContextService.Executor<R,T> wrapper) throws T extends java.lang.Throwable
R - The type of the return valueT - The type of the exception thrown by the wrapperwrapper - The code to execute in that contextT - The exception thrown by the wrapper if an error occursT extends java.lang.ThrowableCopyright © 2018 SAP SE. All Rights Reserved.