public interface CacheErrorHandler
Typically, failing to retrieve an object from the cache with a given id can be transparently managed as a cache miss by not throwing back such exception.
| Modifier and Type | Method and Description | 
|---|---|
void | 
handleCacheClearError(RuntimeException exception,
                     Cache cache)
Handle the given runtime exception thrown by the cache provider when
 clearing the specified  
Cache, possibly rethrowing it as a
 fatal exception. | 
void | 
handleCacheEvictError(RuntimeException exception,
                     Cache cache,
                     Object key)
Handle the given runtime exception thrown by the cache provider when
 clearing an item with the specified  
key, possibly rethrowing
 it as a fatal exception. | 
void | 
handleCacheGetError(RuntimeException exception,
                   Cache cache,
                   Object key)
Handle the given runtime exception thrown by the cache provider when
 retrieving an item with the specified  
key, possibly
 rethrowing it as a fatal exception. | 
void | 
handleCachePutError(RuntimeException exception,
                   Cache cache,
                   Object key,
                   Object value)
Handle the given runtime exception thrown by the cache provider when
 updating an item with the specified  
key and value,
 possibly rethrowing it as a fatal exception. | 
void handleCacheGetError(RuntimeException exception, Cache cache, Object key)
key, possibly
 rethrowing it as a fatal exception.exception - the exception thrown by the cache providercache - the cachekey - the key used to get the itemCache.get(Object)void handleCachePutError(RuntimeException exception, Cache cache, Object key, Object value)
key and value,
 possibly rethrowing it as a fatal exception.exception - the exception thrown by the cache providercache - the cachekey - the key used to update the itemvalue - the value to associate with the keyCache.put(Object, Object)void handleCacheEvictError(RuntimeException exception, Cache cache, Object key)
key, possibly rethrowing
 it as a fatal exception.exception - the exception thrown by the cache providercache - the cachekey - the key used to clear the itemvoid handleCacheClearError(RuntimeException exception, Cache cache)
Cache, possibly rethrowing it as a
 fatal exception.exception - the exception thrown by the cache providercache - the cache to clear