@Singleton @Named(value="async") public class AsyncCacheErrorHandler extends Object implements CacheErrorHandler
| Constructor and Description |
|---|
AsyncCacheErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handleInvalidateError(Cache<?> cache,
Object key,
RuntimeException e)
Handles a cache
CacheInvalidate error. |
boolean |
handleInvalidateError(Cache<?> cache,
RuntimeException e)
Handles a cache
CacheInvalidate error. |
boolean |
handlePutError(Cache<?> cache,
Object key,
Object result,
RuntimeException e)
Handles a cache
CachePut error. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleLoadErrorpublic boolean handleInvalidateError(Cache<?> cache, Object key, RuntimeException e)
CacheErrorHandlerCacheInvalidate error. Defaults to simply rethrowing the error.
By returning false cache invalidate errors will instead to be swallowed and ignored.handleInvalidateError in interface CacheErrorHandlercache - The cachekey - The keye - The errorpublic boolean handleInvalidateError(Cache<?> cache, RuntimeException e)
CacheErrorHandlerCacheInvalidate error. Defaults to simply rethrowing the error.
By returning false cache invalidate errors will instead to be swallowed and ignored.handleInvalidateError in interface CacheErrorHandlercache - The cachee - The errorpublic boolean handlePutError(Cache<?> cache, Object key, Object result, RuntimeException e)
CacheErrorHandlerCachePut error. Defaults to simply rethrowing the error.
By returning false cache write errors will instead to be swallowed and ignored.handlePutError in interface CacheErrorHandlercache - The cachekey - The key nameresult - The resulte - The error