@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, wait
handleLoadError
public boolean handleInvalidateError(Cache<?> cache, Object key, RuntimeException e)
CacheErrorHandler
CacheInvalidate
error. Defaults to simply rethrowing the error.
By returning false
cache invalidate errors will instead to be swallowed and ignored.handleInvalidateError
in interface CacheErrorHandler
cache
- The cachekey
- The keye
- The errorpublic boolean handleInvalidateError(Cache<?> cache, RuntimeException e)
CacheErrorHandler
CacheInvalidate
error. Defaults to simply rethrowing the error.
By returning false
cache invalidate errors will instead to be swallowed and ignored.handleInvalidateError
in interface CacheErrorHandler
cache
- The cachee
- The errorpublic boolean handlePutError(Cache<?> cache, Object key, Object result, RuntimeException e)
CacheErrorHandler
CachePut
error. Defaults to simply rethrowing the error.
By returning false
cache write errors will instead to be swallowed and ignored.handlePutError
in interface CacheErrorHandler
cache
- The cachekey
- The key nameresult
- The resulte
- The error