@FunctionalInterface public interface CacheOperationInvoker
Does not provide a way to transmit checked exceptions but provides 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.
Modifier and Type | Interface and Description |
---|---|
static class |
CacheOperationInvoker.ThrowableWrapper
Wrap any exception thrown while invoking
invoke() . |
Modifier and Type | Method and Description |
---|---|
Object |
invoke()
Invoke the cache operation defined by this instance.
|
@Nullable Object invoke() throws CacheOperationInvoker.ThrowableWrapper
CacheOperationInvoker.ThrowableWrapper
.CacheOperationInvoker.ThrowableWrapper
- if an error occurred while invoking the operation