Top Description Fields Constructors Methods
org.springframework.cache.jcache.interceptor

pack-priv Class CacheRemoveOperation

extends AbstractJCacheKeyOperation<CacheRemove>
Class Inheritance
Imports
javax.cache.annotation.CacheMethodDetails, .CacheRemove, org.springframework.cache.interceptor.CacheResolver, .KeyGenerator, org.springframework.util.ExceptionTypeFilter

The JCacheOperation implementation for a CacheRemove operation.
Author
Stephane Nicoll
Since
4.1
See Also
CacheRemove

Field Summary

Modifier and TypeField and Description
private final ExceptionTypeFilter

Constructor Summary

AccessConstructor and Description
public
CacheRemoveOperation(CacheMethodDetails<CacheRemove> methodDetails, CacheResolver cacheResolver, KeyGenerator keyGenerator)

Method Summary

Modifier and TypeMethod and Description
public ExceptionTypeFilter
getExceptionTypeFilter()

Implements abstract org.springframework.cache.jcache.interceptor.AbstractJCacheOperation.getExceptionTypeFilter.

Return the ExceptionTypeFilter to use to filter exceptions thrown while invoking the method.

public boolean
isEarlyRemove()

Specify if the cache entry should be removed before invoking the method.

Inherited from org.springframework.cache.jcache.interceptor.AbstractJCacheKeyOperation:
getKeyGeneratorgetKeyParameters

Field Detail

exceptionTypeFilterback to summary
private final ExceptionTypeFilter exceptionTypeFilter

Constructor Detail

CacheRemoveOperationback to summary
public CacheRemoveOperation(CacheMethodDetails<CacheRemove> methodDetails, CacheResolver cacheResolver, KeyGenerator keyGenerator)

Method Detail

getExceptionTypeFilterback to summary
public ExceptionTypeFilter getExceptionTypeFilter()

Implements abstract org.springframework.cache.jcache.interceptor.AbstractJCacheOperation.getExceptionTypeFilter.

Doc from org.springframework.cache.jcache.interceptor.AbstractJCacheOperation.getExceptionTypeFilter.

Return the ExceptionTypeFilter to use to filter exceptions thrown while invoking the method.

Annotations
@Override
isEarlyRemoveback to summary
public boolean isEarlyRemove()

Specify if the cache entry should be removed before invoking the method.

By default, the cache entry is removed after the method invocation.

See Also
javax.cache.annotation.CacheRemove#afterInvocation()