Class CacheOperation.Builder
java.lang.Object
org.springframework.cache.interceptor.CacheOperation.Builder
- Direct Known Subclasses:
CacheableOperation.Builder
,CacheEvictOperation.Builder
,CachePutOperation.Builder
- Enclosing class:
- CacheOperation
Base class for builders that can be used to create a
CacheOperation
.- Since:
- 4.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract CacheOperation
build()
getKey()
protected StringBuilder
Return an identifying description for this caching operation.void
setCacheManager
(String cacheManager) void
setCacheName
(String cacheName) void
setCacheNames
(String... cacheNames) void
setCacheResolver
(String cacheResolver) void
setCondition
(String condition) void
void
setKeyGenerator
(String keyGenerator) void
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setName
-
setCacheName
-
setCacheNames
-
getCacheNames
-
setKey
-
getKey
-
getKeyGenerator
-
getCacheManager
-
getCacheResolver
-
setKeyGenerator
-
setCacheManager
-
setCacheResolver
-
setCondition
-
getOperationDescription
Return an identifying description for this caching operation.Available to subclasses, for inclusion in their
toString()
result. -
build
-