Top Description Inners Methods
org.springframework.cache.interceptor

public Interface CacheOperationInvoker

Annotations
@FunctionalInterface
Imports
org.springframework.lang.Nullable

Abstract the invocation of a cache operation.

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.

Author
Stephane Nicoll
Since
4.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
CacheOperationInvoker.ThrowableWrapper

Wrap any exception thrown while invoking invoke().

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the result of the operation
invoke
()

Invoke the cache operation defined by this instance.

Method Detail

invokeback to summary
public Object invoke() throws ThrowableWrapper

Invoke the cache operation defined by this instance. Wraps any exception that is thrown during the invocation in a ThrowableWrapper.

Returns:Object

the result of the operation

Annotations
@Nullable
Exceptions
ThrowableWrapper:
if an error occurred while invoking the operation
org.springframework.cache.interceptor back to summary

public Class CacheOperationInvoker.ThrowableWrapper

extends RuntimeException
Class Inheritance
Annotations
@SuppressWarnings:serial

Wrap any exception thrown while invoking invoke().

Field Summary

Modifier and TypeField and Description
private final Throwable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Throwable

Field Detail

originalback to summary
private final Throwable original

Constructor Detail

ThrowableWrapperback to summary
public ThrowableWrapper(Throwable original)

Method Detail

getOriginalback to summary
public Throwable getOriginal()