接口的使用
org.springframework.cache.interceptor.CacheErrorHandler
使用CacheErrorHandler的程序包 程序包 说明 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.org.springframework.cache.annotation中CacheErrorHandler的使用
类型参数类型为CacheErrorHandler的org.springframework.cache.annotation中的字段 修饰符和类型 字段 说明 protected Supplier<CacheErrorHandler>
AbstractCachingConfiguration. errorHandler
返回CacheErrorHandler的org.springframework.cache.annotation中的方法 修饰符和类型 方法 说明 CacheErrorHandler
CachingConfigurer. errorHandler()
Return theCacheErrorHandler
to use to handle cache-related errors.CacheErrorHandler
CachingConfigurerSupport. errorHandler()
org.springframework.cache.interceptor中CacheErrorHandler的使用
实现CacheErrorHandler的org.springframework.cache.interceptor中的类 修饰符和类型 类 说明 class
SimpleCacheErrorHandler
A simpleCacheErrorHandler
that does not handle the exception at all, simply throwing it back at the client.类型参数类型为CacheErrorHandler的org.springframework.cache.interceptor中的字段 修饰符和类型 字段 说明 protected SingletonSupplier<CacheErrorHandler>
AbstractCacheInvoker. errorHandler
返回CacheErrorHandler的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 CacheErrorHandler
AbstractCacheInvoker. getErrorHandler()
Return theCacheErrorHandler
to use.参数类型为CacheErrorHandler的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 void
AbstractCacheInvoker. setErrorHandler(CacheErrorHandler errorHandler)
Set theCacheErrorHandler
instance to use to handle errors thrown by the cache provider.类型变量类型为CacheErrorHandler的org.springframework.cache.interceptor中的方法参数 修饰符和类型 方法 说明 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.参数类型为CacheErrorHandler的org.springframework.cache.interceptor中的构造器 构造器 说明 AbstractCacheInvoker(CacheErrorHandler errorHandler)
org.springframework.cache.jcache.interceptor中CacheErrorHandler的使用
类型变量类型为CacheErrorHandler的org.springframework.cache.jcache.interceptor中的构造器参数 构造器 说明 JCacheInterceptor(Supplier<CacheErrorHandler> errorHandler)
Construct a newJCacheInterceptor
with the given error handler.