public class SimpleCacheErrorHandler extends java.lang.Object implements CacheErrorHandler
CacheErrorHandler
that does not handle the
exception at all, simply throwing it back at the client.Constructor and Description |
---|
SimpleCacheErrorHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleCacheClearError(java.lang.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(java.lang.RuntimeException exception,
Cache cache,
java.lang.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(java.lang.RuntimeException exception,
Cache cache,
java.lang.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(java.lang.RuntimeException exception,
Cache cache,
java.lang.Object key,
java.lang.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. |
public void handleCacheGetError(java.lang.RuntimeException exception, Cache cache, java.lang.Object key)
CacheErrorHandler
key
, possibly
rethrowing it as a fatal exception.handleCacheGetError
in interface CacheErrorHandler
exception
- the exception thrown by the cache providercache
- the cachekey
- the key used to get the itemCache.get(Object)
public void handleCachePutError(java.lang.RuntimeException exception, Cache cache, java.lang.Object key, @Nullable java.lang.Object value)
CacheErrorHandler
key
and value
,
possibly rethrowing it as a fatal exception.handleCachePutError
in interface CacheErrorHandler
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)
public void handleCacheEvictError(java.lang.RuntimeException exception, Cache cache, java.lang.Object key)
CacheErrorHandler
key
, possibly rethrowing
it as a fatal exception.handleCacheEvictError
in interface CacheErrorHandler
exception
- the exception thrown by the cache providercache
- the cachekey
- the key used to clear the itempublic void handleCacheClearError(java.lang.RuntimeException exception, Cache cache)
CacheErrorHandler
Cache
, possibly rethrowing it as a
fatal exception.handleCacheClearError
in interface CacheErrorHandler
exception
- the exception thrown by the cache providercache
- the cache to clear