类 CacheableOperation.Builder
- java.lang.Object
- org.springframework.cache.interceptor.CacheOperation.Builder
- org.springframework.cache.interceptor.CacheableOperation.Builder
public static class CacheableOperation.Builder extends CacheOperation.Builder
A builder that can be used to create aCacheableOperation.- 从以下版本开始:
- 4.3
构造器概要
构造器 构造器 说明 Builder()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CacheableOperationbuild()protected StringBuildergetOperationDescription()Return an identifying description for this caching operation.voidsetSync(boolean sync)voidsetUnless(String unless)从类继承的方法 org.springframework.cache.interceptor.CacheOperation.Builder
getCacheManager, getCacheNames, getCacheResolver, getKey, getKeyGenerator, setCacheManager, setCacheName, setCacheNames, setCacheResolver, setCondition, setKey, setKeyGenerator, setName
构造器详细资料
Builder
public Builder()
方法详细资料
setSync
public void setSync(boolean sync)
getOperationDescription
protected StringBuilder getOperationDescription()
从类复制的说明:CacheOperation.BuilderReturn an identifying description for this caching operation.Available to subclasses, for inclusion in their
toString()result.
build
public CacheableOperation build()
- 指定者:
build在类中CacheOperation.Builder