Class CacheEvictOperation.Builder
java.lang.Object
org.springframework.cache.interceptor.CacheOperation.Builder
org.springframework.cache.interceptor.CacheEvictOperation.Builder
- Enclosing class:
- CacheEvictOperation
A builder that can be used to create a
CacheEvictOperation
.- Since:
- 4.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected StringBuilder
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 Details
-
Builder
public Builder()
-
-
Method Details
-
setCacheWide
public void setCacheWide(boolean cacheWide) -
setBeforeInvocation
public void setBeforeInvocation(boolean beforeInvocation) -
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
- Specified by:
build
in classCacheOperation.Builder
-