Interface 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.
- Since:
- 4.1
- Author:
- Stephane Nicoll
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCacheOperationInvoker.ThrowableWrapperWrap any exception thrown while invokinginvoke().
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectinvoke()Invoke the cache operation defined by this instance.
Method Detail
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.- Returns:
- the result of the operation
- Throws:
CacheOperationInvoker.ThrowableWrapper- if an error occurred while invoking the operation