类 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 class
CacheOperation.Builder
Base class for builders that can be used to create aCacheOperation
.
构造器概要
构造器 限定符 构造器 说明 protected
CacheOperation(CacheOperation.Builder b)
Create a newCacheOperation
instance from the given builder.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
equals(Object other)
This implementation compares thetoString()
results.String
getCacheManager()
Set<String>
getCacheNames()
Return the cache name(s) associated with the operation.String
getCacheResolver()
String
getCondition()
String
getKey()
String
getKeyGenerator()
String
getName()
int
hashCode()
This implementation returnstoString()
's hash code.String
toString()
Return an identifying description for this cache operation.
构造器详细资料
CacheOperation
protected CacheOperation(CacheOperation.Builder b)
Create a newCacheOperation
instance from the given builder.- 从以下版本开始:
- 4.3
方法详细资料
getCacheNames
public Set<String> getCacheNames()
从接口复制的说明:BasicOperation
Return 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)
.