public interface VCacheRequestContextOperations
Modifier and Type | Interface and Description |
---|---|
static interface |
VCacheRequestContextOperations.Action<T,X extends Throwable> |
Modifier and Type | Method and Description |
---|---|
default void |
doInRequestContext(Runnable action)
A simplified form of
#doInRequestContext(VCacheRequestContextManager.Action) that takes a
Runnable callback. |
<T,X extends Throwable> |
doInRequestContext(String partitionIdentifier,
VCacheRequestContextOperations.Action<T,X> action)
Deprecated.
since 6.0. Partitions are not supported in Confluence Server
|
<T,X extends Throwable> |
doInRequestContext(VCacheRequestContextOperations.Action<T,X> action)
Executes the supplied action callback within a VCache
RequestContext , using the system default
partition identifier. |
default <T> Callable<T> |
withRequestContext(Callable<T> task)
Wraps the supplied
Callable in a request context |
default Runnable |
withRequestContext(Runnable task)
Wraps the supplied
Runnable in a request context |
<T,X extends Throwable> T doInRequestContext(VCacheRequestContextOperations.Action<T,X> action) throws X extends Throwable
RequestContext
, using the system default
partition identifier.T
- the return type of the callbackX
- the exception type thrown by the callbackaction
- the callback to be executed within the request contextX
- the exception thrown by the callbackIllegalArgumentException
- if the partition identifier is not the same as that provided by previous callsX extends Throwable
@Deprecated <T,X extends Throwable> T doInRequestContext(String partitionIdentifier, VCacheRequestContextOperations.Action<T,X> action) throws X extends Throwable
RequestContext
. If no request context is bound to
the current thread, then one will be set up with the supplied partition identifier. Calls to this method may be
nested. Nested calls will re-use the existing context bound by the first call. Nested calls must supply the
same partition identifier as the first call.T
- the return type of the callbackX
- the exception type thrown by the callbackpartitionIdentifier
- the partition identifier that will be used to create new request context, if necessaryaction
- the callback to be executed within the request contextX
- the exception thrown by the callbackIllegalArgumentException
- if the partition identifier is not the same as that provided by previous callsX extends Throwable
default void doInRequestContext(Runnable action)
#doInRequestContext(VCacheRequestContextManager.Action)
that takes a
Runnable
callback.default <T> Callable<T> withRequestContext(Callable<T> task)
Callable
in a request contextCopyright © 2003–2019 Atlassian. All rights reserved.