类 CacheOperation
- java.lang.Object
- org.springframework.cache.interceptor.CacheOperation
- 所有已实现的接口:
BasicOperation
public abstract class CacheOperation extends Object implements BasicOperation
Base class for cache operations.- 从以下版本开始:
- 3.1
- 作者:
- Costin Leau, Stephane Nicoll, Marcin Kamionowski
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classCacheOperation.BuilderBase class for builders that can be used to create aCacheOperation.
构造器概要
构造器 限定符 构造器 说明 protectedCacheOperation(CacheOperation.Builder b)Create a newCacheOperationinstance from the given builder.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object other)This implementation compares thetoString()results.StringgetCacheManager()Set<String>getCacheNames()Return the cache name(s) associated with the operation.StringgetCacheResolver()StringgetCondition()StringgetKey()StringgetKeyGenerator()StringgetName()inthashCode()This implementation returnstoString()'s hash code.StringtoString()Return an identifying description for this cache operation.
构造器详细资料
CacheOperation
protected CacheOperation(CacheOperation.Builder b)
Create a newCacheOperationinstance from the given builder.- 从以下版本开始:
- 4.3
方法详细资料
getCacheNames
public Set<String> getCacheNames()
从接口复制的说明:BasicOperationReturn the cache name(s) associated with the operation.- 指定者:
getCacheNames在接口中BasicOperation
getKeyGenerator
public String getKeyGenerator()
getCacheManager
public String getCacheManager()
getCacheResolver
public String getCacheResolver()
getCondition
public String getCondition()
equals
public boolean equals(@Nullable Object other)
This implementation compares thetoString()results.- 覆盖:
equals在类中Object- 另请参阅:
toString()
hashCode
public int hashCode()
This implementation returnstoString()'s hash code.- 覆盖:
hashCode在类中Object- 另请参阅:
toString()
toString
public final String 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).