public class JCacheInterceptor extends JCacheAspectSupport implements org.aopalliance.intercept.MethodInterceptor, Serializable
Derives from the JCacheAspectSupport
class which
contains the integration with Spring's underlying caching API.
JCacheInterceptor simply calls the relevant superclass method.
JCacheInterceptors are thread-safe.
CacheInterceptor
,
Serialized Formlogger
Constructor and Description |
---|
JCacheInterceptor()
Construct a new
JCacheInterceptor with the default error handler. |
JCacheInterceptor(Supplier<org.springframework.cache.interceptor.CacheErrorHandler> errorHandler)
Construct a new
JCacheInterceptor with the given error handler. |
Modifier and Type | Method and Description |
---|---|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
afterPropertiesSet, execute, getCacheOperationSource, invokeOperation, setCacheOperationSource
public JCacheInterceptor()
JCacheInterceptor
with the default error handler.public JCacheInterceptor(@Nullable Supplier<org.springframework.cache.interceptor.CacheErrorHandler> errorHandler)
JCacheInterceptor
with the given error handler.errorHandler
- a supplier for the error handler to use,
applying the default error handler if the supplier is not resolvable