@Singleton @Named(value="async") public class AsyncCacheErrorHandler extends java.lang.Object implements CacheErrorHandler
Constructor and Description |
---|
AsyncCacheErrorHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
handleInvalidateError(Cache<?> cache,
java.lang.Object key,
java.lang.RuntimeException e)
Handles a cache
CacheInvalidate error. |
boolean |
handleInvalidateError(Cache<?> cache,
java.lang.RuntimeException e)
Handles a cache
CacheInvalidate error. |
boolean |
handlePutError(Cache<?> cache,
java.lang.Object key,
java.lang.Object result,
java.lang.RuntimeException e)
Handles a cache
CachePut error. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleLoadError
public boolean handleInvalidateError(Cache<?> cache, java.lang.Object key, java.lang.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, java.lang.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, java.lang.Object key, java.lang.Object result, java.lang.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