类 AbstractCacheInvoker
java.lang.Object
cn.taketoday.cache.interceptor.AbstractCacheInvoker
- 直接已知子类:
CacheAspectSupport
A base component for invoking
Cache operations and using a
configurable CacheErrorHandler when an exception occurs.- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll, Juergen Hoeller
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voidExecuteCache.clear()on the specifiedCacheand invoke the error handler if an exception occurs.protected voidExecuteCache.evict(Object)/Cache.evictIfPresent(Object)on the specifiedCacheand invoke the error handler if an exception occurs.protected Cache.ValueWrapperExecuteCache.get(Object)on the specifiedCacheand invoke the error handler if an exception occurs.protected voidExecuteCache.put(Object, Object)on the specifiedCacheand invoke the error handler if an exception occurs.Return theCacheErrorHandlerto use.voidsetErrorHandler(CacheErrorHandler errorHandler) Set theCacheErrorHandlerinstance to use to handle errors thrown by the cache provider.
-
字段详细资料
-
errorHandler
-
-
构造器详细资料
-
AbstractCacheInvoker
protected AbstractCacheInvoker() -
AbstractCacheInvoker
-
-
方法详细资料
-
setErrorHandler
Set theCacheErrorHandlerinstance to use to handle errors thrown by the cache provider. By default, aSimpleCacheErrorHandleris used who throws any exception as is. -
getErrorHandler
Return theCacheErrorHandlerto use. -
doGet
ExecuteCache.get(Object)on the specifiedCacheand invoke the error handler if an exception occurs. Returnnullif the handler does not throw any exception, which simulates a cache miss in case of error.- 另请参阅:
-
doPut
ExecuteCache.put(Object, Object)on the specifiedCacheand invoke the error handler if an exception occurs. -
doEvict
ExecuteCache.evict(Object)/Cache.evictIfPresent(Object)on the specifiedCacheand invoke the error handler if an exception occurs. -
doClear
ExecuteCache.clear()on the specifiedCacheand invoke the error handler if an exception occurs.
-