接口的使用
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中的方法 修饰符和类型 方法 说明 CacheErrorHandlerCachingConfigurer. errorHandler()Return theCacheErrorHandlerto use to handle cache-related errors.CacheErrorHandlerCachingConfigurerSupport. errorHandler()org.springframework.cache.interceptor中CacheErrorHandler的使用
实现CacheErrorHandler的org.springframework.cache.interceptor中的类 修饰符和类型 类 说明 classSimpleCacheErrorHandlerA simpleCacheErrorHandlerthat 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中的方法 修饰符和类型 方法 说明 CacheErrorHandlerAbstractCacheInvoker. getErrorHandler()Return theCacheErrorHandlerto use.参数类型为CacheErrorHandler的org.springframework.cache.interceptor中的方法 修饰符和类型 方法 说明 voidAbstractCacheInvoker. setErrorHandler(CacheErrorHandler errorHandler)Set theCacheErrorHandlerinstance to use to handle errors thrown by the cache provider.类型变量类型为CacheErrorHandler的org.springframework.cache.interceptor中的方法参数 修饰符和类型 方法 说明 voidCacheAspectSupport. 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 newJCacheInterceptorwith the given error handler.