class CacheResultOperation extends AbstractJCacheKeyOperation<CacheResult>
JCacheOperation implementation for a CacheResult operation.CacheResultAbstractJCacheOperation.CacheInvocationParameterImpl, AbstractJCacheOperation.CacheParameterDetail| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
exceptionCacheName |
private CacheResolver |
exceptionCacheResolver |
private ExceptionTypeFilter |
exceptionTypeFilter |
allParameterDetails| Constructor and Description |
|---|
CacheResultOperation(<any> methodDetails,
CacheResolver cacheResolver,
KeyGenerator keyGenerator,
CacheResolver exceptionCacheResolver) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExceptionCacheName()
Return the name of the cache to cache exceptions, or
null if
caching exceptions should be disabled. |
CacheResolver |
getExceptionCacheResolver()
Return the
CacheResolver instance to use to resolve the cache to
use for matching exceptions thrown by this operation. |
ExceptionTypeFilter |
getExceptionTypeFilter()
Return the
ExceptionTypeFilter to use to filter exceptions thrown while
invoking the method. |
boolean |
isAlwaysInvoked()
Specify if the method should always be invoked regardless of a cache hit.
|
getKeyGenerator, getKeyParameterscreateExceptionTypeFilter, getAllParameters, getAnnotations, getCacheAnnotation, getCacheName, getCacheNames, getCacheResolver, getMethod, getOperationDescription, toStringprivate final ExceptionTypeFilter exceptionTypeFilter
private final CacheResolver exceptionCacheResolver
private final java.lang.String exceptionCacheName
public CacheResultOperation(<any> methodDetails,
CacheResolver cacheResolver,
KeyGenerator keyGenerator,
CacheResolver exceptionCacheResolver)
public ExceptionTypeFilter getExceptionTypeFilter()
AbstractJCacheOperationExceptionTypeFilter to use to filter exceptions thrown while
invoking the method.getExceptionTypeFilter in class AbstractJCacheOperation<CacheResult>public boolean isAlwaysInvoked()
javax.cache.annotation.CacheResult#skipGet()public CacheResolver getExceptionCacheResolver()
CacheResolver instance to use to resolve the cache to
use for matching exceptions thrown by this operation.public java.lang.String getExceptionCacheName()
null if
caching exceptions should be disabled.javax.cache.annotation.CacheResult#exceptionCacheName()