Class CacheableOperation.Builder
java.lang.Object
org.springframework.cache.interceptor.CacheOperation.Builder
org.springframework.cache.interceptor.CacheableOperation.Builder
- Enclosing class:
CacheableOperation
A builder that can be used to create a
CacheableOperation
.- Since:
- 4.3
- Author:
- Costin Leau, Phillip Webb, Marcin Kamionowski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected StringBuilder
Return an identifying description for this caching operation.void
setSync
(boolean sync) void
Methods inherited from class CacheOperation.Builder
getCacheManager, getCacheNames, getCacheResolver, getKey, getKeyGenerator, setCacheManager, setCacheName, setCacheNames, setCacheResolver, setCondition, setKey, setKeyGenerator, setName
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setUnless
-
setSync
public void setSync(boolean sync) -
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
-