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
Nested ClassesModifier and TypeClassDescriptionstatic classBase class for builders that can be used to create aCacheOperation. - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate a newCacheOperationinstance from the given builder. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanThis implementation compares thetoString()results.Return the cache name(s) associated with the operation.getKey()getName()inthashCode()This implementation returnstoString()'s hash code.final StringtoString()Return an identifying description for this cache operation. 
- 
Constructor Details
- 
CacheOperation
Create a newCacheOperationinstance from the given builder.- Since:
 - 4.3
 
 
 - 
 - 
Method Details
- 
getName
 - 
getCacheNames
Description copied from interface:BasicOperationReturn the cache name(s) associated with the operation.- Specified by:
 getCacheNamesin 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). 
 -