类 SimpleCacheErrorHandler
java.lang.Object
cn.taketoday.cache.interceptor.SimpleCacheErrorHandler
- 所有已实现的接口:
CacheErrorHandler
A simple
CacheErrorHandler that does not handle the
exception at all, simply throwing it back at the client.- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidhandleCacheClearError(RuntimeException exception, Cache cache) Handle the given runtime exception thrown by the cache provider when clearing the specifiedCache, possibly rethrowing it as a fatal exception.voidhandleCacheEvictError(RuntimeException exception, Cache cache, Object key) Handle the given runtime exception thrown by the cache provider when clearing an item with the specifiedkey, possibly rethrowing it as a fatal exception.voidhandleCacheGetError(RuntimeException exception, Cache cache, Object key) Handle the given runtime exception thrown by the cache provider when retrieving an item with the specifiedkey, possibly rethrowing it as a fatal exception.voidhandleCachePutError(RuntimeException exception, Cache cache, Object key, Object value) Handle the given runtime exception thrown by the cache provider when updating an item with the specifiedkeyandvalue, possibly rethrowing it as a fatal exception.
-
构造器详细资料
-
SimpleCacheErrorHandler
public SimpleCacheErrorHandler()
-
-
方法详细资料
-
handleCacheGetError
从接口复制的说明:CacheErrorHandlerHandle the given runtime exception thrown by the cache provider when retrieving an item with the specifiedkey, possibly rethrowing it as a fatal exception.- 指定者:
handleCacheGetError在接口中CacheErrorHandler- 参数:
exception- the exception thrown by the cache providercache- the cachekey- the key used to get the item- 另请参阅:
-
handleCachePutError
public void handleCachePutError(RuntimeException exception, Cache cache, Object key, @Nullable Object value) 从接口复制的说明:CacheErrorHandlerHandle the given runtime exception thrown by the cache provider when updating an item with the specifiedkeyandvalue, possibly rethrowing it as a fatal exception.- 指定者:
handleCachePutError在接口中CacheErrorHandler- 参数:
exception- the exception thrown by the cache providercache- the cachekey- the key used to update the itemvalue- the value to associate with the key- 另请参阅:
-
handleCacheEvictError
从接口复制的说明:CacheErrorHandlerHandle the given runtime exception thrown by the cache provider when clearing an item with the specifiedkey, possibly rethrowing it as a fatal exception.- 指定者:
handleCacheEvictError在接口中CacheErrorHandler- 参数:
exception- the exception thrown by the cache providercache- the cachekey- the key used to clear the item
-
handleCacheClearError
从接口复制的说明:CacheErrorHandlerHandle the given runtime exception thrown by the cache provider when clearing the specifiedCache, possibly rethrowing it as a fatal exception.- 指定者:
handleCacheClearError在接口中CacheErrorHandler- 参数:
exception- the exception thrown by the cache providercache- the cache to clear
-