Package | Description |
---|---|
org.springframework.cache.annotation |
Annotations and supporting classes for declarative cache management.
|
org.springframework.cache.interceptor |
AOP-based solution for declarative caching demarcation.
|
org.springframework.cache.jcache.interceptor |
AOP-based solution for declarative caching demarcation using JSR-107 annotations.
|
Modifier and Type | Field and Description |
---|---|
protected Supplier<CacheErrorHandler> |
AbstractCachingConfiguration.errorHandler |
Modifier and Type | Method and Description |
---|---|
CacheErrorHandler |
CachingConfigurer.errorHandler()
Return the
CacheErrorHandler to use to handle cache-related errors. |
CacheErrorHandler |
CachingConfigurerSupport.errorHandler() |
Modifier and Type | Class and Description |
---|---|
class |
SimpleCacheErrorHandler
A simple
CacheErrorHandler that does not handle the
exception at all, simply throwing it back at the client. |
Modifier and Type | Field and Description |
---|---|
protected SingletonSupplier<CacheErrorHandler> |
AbstractCacheInvoker.errorHandler |
Modifier and Type | Method and Description |
---|---|
CacheErrorHandler |
AbstractCacheInvoker.getErrorHandler()
Return the
CacheErrorHandler to use. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractCacheInvoker.setErrorHandler(CacheErrorHandler errorHandler)
Set the
CacheErrorHandler instance to use to handle errors
thrown by the cache provider. |
Modifier and Type | Method and Description |
---|---|
void |
CacheAspectSupport.configure(Supplier<CacheErrorHandler> errorHandler,
Supplier<KeyGenerator> keyGenerator,
Supplier<CacheResolver> cacheResolver,
Supplier<CacheManager> cacheManager)
Configure this aspect with the given error handler, key generator and cache resolver/manager
suppliers, applying the corresponding default if a supplier is not resolvable.
|
Constructor and Description |
---|
AbstractCacheInvoker(CacheErrorHandler errorHandler) |
Constructor and Description |
---|
JCacheInterceptor(Supplier<CacheErrorHandler> errorHandler)
Construct a new
JCacheInterceptor with the given error handler. |