Class CacheableOperation.Builder
- java.lang.Object
- org.springframework.cache.interceptor.CacheOperation.Builder
- org.springframework.cache.interceptor.CacheableOperation.Builder
- Enclosing class:
- CacheableOperation
public static class CacheableOperation.Builder extends CacheOperation.Builder
- Since:
- 4.3
Constructor Summary
Constructors Constructor Description Builder()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheableOperationbuild()protected StringBuildergetOperationDescription()Return an identifying description for this caching operation.voidsetSync(boolean sync)voidsetUnless(String unless)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
setSync
public void setSync(boolean sync)
getOperationDescription
protected StringBuilder getOperationDescription()
Description copied from class:CacheOperation.BuilderReturn an identifying description for this caching operation.Available to subclasses, for inclusion in their
toString()result.- Overrides:
getOperationDescriptionin classCacheOperation.Builder
build
public CacheableOperation build()
- Specified by:
buildin classCacheOperation.Builder