Class CacheEvictOperation.Builder
- java.lang.Object
- org.springframework.cache.interceptor.CacheOperation.Builder
- org.springframework.cache.interceptor.CacheEvictOperation.Builder
- Enclosing class:
- CacheEvictOperation
public static class CacheEvictOperation.Builder extends CacheOperation.Builder
A builder that can be used to create aCacheEvictOperation
.- Since:
- 4.3
Constructor Summary
Constructors Constructor Description Builder()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheEvictOperation
build()
protected StringBuilder
getOperationDescription()
Return an identifying description for this caching operation.void
setBeforeInvocation(boolean beforeInvocation)
void
setCacheWide(boolean cacheWide)
Methods inherited from class org.springframework.cache.interceptor.CacheOperation.Builder
getCacheManager, getCacheNames, getCacheResolver, getKey, getKeyGenerator, setCacheManager, setCacheName, setCacheNames, setCacheResolver, setCondition, setKey, setKeyGenerator, setName
Constructor Detail
Builder
public Builder()
Method Detail
setCacheWide
public void setCacheWide(boolean cacheWide)
setBeforeInvocation
public void setBeforeInvocation(boolean beforeInvocation)
getOperationDescription
protected StringBuilder getOperationDescription()
Description copied from class:CacheOperation.Builder
Return an identifying description for this caching operation.Available to subclasses, for inclusion in their
toString()
result.- Overrides:
getOperationDescription
in classCacheOperation.Builder
build
public CacheEvictOperation build()
- Specified by:
build
in classCacheOperation.Builder