- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface 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.
- Stephane Nicoll
Nested Class SummaryModifier and TypeInterfaceDescription
static classWrap any exception thrown while invoking
invoke@Nullable Object invoke() throws CacheOperationInvoker.ThrowableWrapperInvoke the cache operation defined by this instance. Wraps any exception that is thrown during the invocation in a
- the result of the operation
CacheOperationInvoker.ThrowableWrapper- if an error occurred while invoking the operation