接口 CacheOperationInvoker
public interface CacheOperationInvoker
Abstract the invocation of a cache operation.Does not provide a way to transmit checked exceptions but provide a special exception that should be used to wrap any exception that was thrown by the underlying invocation. Callers are expected to handle this issue type specifically.
- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static classCacheOperationInvoker.ThrowableWrapperWrap any exception thrown while invokinginvoke().
方法详细资料
invoke
Object invoke() throws CacheOperationInvoker.ThrowableWrapper
Invoke the cache operation defined by this instance. Wraps any exception that is thrown during the invocation in aCacheOperationInvoker.ThrowableWrapper.- 返回:
- the result of the operation
- 抛出:
CacheOperationInvoker.ThrowableWrapper- if an error occurred while invoking the operation