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, wait
doInRequestContext, withRequestContext, withRequestContext
public <T,X extends Throwable> T doInRequestContext(VCacheRequestContextOperations.Action<T,X> action) throws X extends Throwable
VCacheRequestContextOperations
RequestContext
, using the system default
partition identifier.doInRequestContext
in interface VCacheRequestContextOperations
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 callbackX extends Throwable
public <T,X extends Throwable> T doInRequestContext(String partitionIdentifier, VCacheRequestContextOperations.Action<T,X> action) throws X extends Throwable
VCacheRequestContextOperations
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.doInRequestContext
in interface VCacheRequestContextOperations
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 callbackX extends Throwable
Copyright © 2003–2020 Atlassian. All rights reserved.