public class DummyVCacheRequestContextOperations extends Object implements VCacheRequestContextOperations
VCacheRequestContextOperations.Action<T,X extends Throwable>| Constructor and Description |
|---|
DummyVCacheRequestContextOperations() |
| Modifier and Type | Method and Description |
|---|---|
<T,X extends Throwable> |
doInRequestContext(String partitionIdentifier,
VCacheRequestContextOperations.Action<T,X> action)
Executes the supplied action callback within a VCache
RequestContext. |
<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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoInRequestContext, withRequestContext, withRequestContextpublic <T,X extends Throwable> T doInRequestContext(VCacheRequestContextOperations.Action<T,X> action) throws X extends Throwable
VCacheRequestContextOperationsRequestContext, using the system default
partition identifier.doInRequestContext in interface VCacheRequestContextOperationsT - 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 callbackX extends Throwablepublic <T,X extends Throwable> T doInRequestContext(String partitionIdentifier, VCacheRequestContextOperations.Action<T,X> action) throws X extends Throwable
VCacheRequestContextOperationsRequestContext. 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.doInRequestContext in interface VCacheRequestContextOperationsT - 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 callbackX extends ThrowableCopyright © 2003–2021 Atlassian. All rights reserved.