public class CachePutOperation extends BaseKeyCacheOperation<CachePut>
JCacheOperation
implementation for a CachePut
operation.CachePut
BaseCacheOperation.CacheInvocationParameterImpl, BaseCacheOperation.CacheParameterDetail
Modifier and Type | Field and Description |
---|---|
private ExceptionTypeFilter |
exceptionTypeFilter |
private BaseCacheOperation.CacheParameterDetail |
valueParameterDetail |
allParameterDetails
Constructor and Description |
---|
CachePutOperation(<any> methodDetails,
CacheResolver cacheResolver,
KeyGenerator keyGenerator) |
Modifier and Type | Method and Description |
---|---|
ExceptionTypeFilter |
getExceptionTypeFilter()
Return the
ExceptionTypeFilter to use to filter exceptions thrown while
invoking the method. |
CacheInvocationParameter |
getValueParameter(java.lang.Object... values)
Return the
CacheInvocationParameter for the parameter holding the value
to cache. |
private static BaseCacheOperation.CacheParameterDetail |
initializeValueParameterDetail(java.lang.reflect.Method method,
java.util.List<BaseCacheOperation.CacheParameterDetail> allParameters) |
boolean |
isEarlyPut()
Specify if the cache should be updated before invoking the method.
|
getKeyGenerator, getKeyParameters
createExceptionTypeFilter, getAllParameters, getAnnotations, getCacheAnnotation, getCacheName, getCacheNames, getCacheResolver, getMethod, getOperationDescription, toString
private final ExceptionTypeFilter exceptionTypeFilter
private final BaseCacheOperation.CacheParameterDetail valueParameterDetail
public CachePutOperation(<any> methodDetails, CacheResolver cacheResolver, KeyGenerator keyGenerator)
public ExceptionTypeFilter getExceptionTypeFilter()
BaseCacheOperation
ExceptionTypeFilter
to use to filter exceptions thrown while
invoking the method.getExceptionTypeFilter
in class BaseCacheOperation<CachePut>
public boolean isEarlyPut()
javax.cache.annotation.CachePut#afterInvocation()
public CacheInvocationParameter getValueParameter(java.lang.Object... values)
CacheInvocationParameter
for the parameter holding the value
to cache.
The method arguments must match the signature of the related method invocation
values
- the parameters value for a particular invocationCacheInvocationParameter
instance for the value parameterprivate static BaseCacheOperation.CacheParameterDetail initializeValueParameterDetail(java.lang.reflect.Method method, java.util.List<BaseCacheOperation.CacheParameterDetail> allParameters)