public interface CacheErrorHandler
An interface for handling cache errors.
| Modifier and Type | Method and Description | 
|---|---|
| default boolean | handleInvalidateError(Cache<?> cache,
                     Object key,
                     RuntimeException e)Handles a cache  CacheInvalidateerror. | 
| default boolean | handleInvalidateError(Cache<?> cache,
                     RuntimeException e)Handles a cache  CacheInvalidateerror. | 
| default boolean | handleLoadError(Cache<?> cache,
               Object key,
               RuntimeException e)Handles an error loading a value from the cache via  Cacheable. | 
| default boolean | handlePutError(Cache<?> cache,
              Object key,
              Object result,
              RuntimeException e)Handles a cache  CachePuterror. | 
default boolean handleInvalidateError(Cache<?> cache, Object key, RuntimeException e)
CacheInvalidate error. Defaults to simply rethrowing the error.
 By returning false cache invalidate errors will instead to be swallowed and ignored.cache - The cachekey - The keye - The errordefault boolean handleInvalidateError(Cache<?> cache, RuntimeException e)
CacheInvalidate error. Defaults to simply rethrowing the error.
 By returning false cache invalidate errors will instead to be swallowed and ignored.cache - The cachee - The errordefault boolean handlePutError(Cache<?> cache, Object key, Object result, RuntimeException e)
CachePut error. Defaults to simply rethrowing the error.
 By returning false cache write errors will instead to be swallowed and ignored.cache - The cachekey - The key nameresult - The resulte - The errordefault boolean handleLoadError(Cache<?> cache, Object key, RuntimeException e)
Cacheable. Note that
 by returning false the behaviour can be customized such that cache related exceptions are ignored and
 the original method invoked.cache - The cachekey - The keye - The error