Class CacheOperation
java.lang.Object
org.springframework.cache.interceptor.CacheOperation
- All Implemented Interfaces:
BasicOperation
- Direct Known Subclasses:
CacheableOperation
,CacheEvictOperation
,CachePutOperation
Base class for cache operations.
- Since:
- 3.1
- Author:
- Costin Leau, Stephane Nicoll, Marcin Kamionowski
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Base class for builders that can be used to create aCacheOperation
. -
Constructor Summary
ModifierConstructorDescriptionprotected
Create a newCacheOperation
instance from the given builder. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This implementation compares thetoString()
results.Return the cache name(s) associated with the operation.getKey()
getName()
int
hashCode()
This implementation returnstoString()
's hash code.final String
toString()
Return an identifying description for this cache operation.
-
Constructor Details
-
CacheOperation
Create a newCacheOperation
instance from the given builder.- Since:
- 4.3
-
-
Method Details
-
getName
-
getCacheNames
Description copied from interface:BasicOperation
Return the cache name(s) associated with the operation.- Specified by:
getCacheNames
in interfaceBasicOperation
-
getKey
-
getKeyGenerator
-
getCacheManager
-
getCacheResolver
-
getCondition
-
equals
This implementation compares thetoString()
results. -
hashCode
public int hashCode()This implementation returnstoString()
's hash code. -
toString
Return an identifying description for this cache operation.Returned value is produced by calling
CacheOperation.Builder.getOperationDescription()
during object construction. This method is used inhashCode()
andequals(java.lang.Object)
.
-