|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy
com.tangosol.net.cache.CompactSerializationCache.WrapperEvictionPolicy
protected class CompactSerializationCache.WrapperEvictionPolicy
WrapperEvictionPolicy is used to wrap external or "custom" EvictionPolicy implementations to adapt the internal Binary key-based API to the Entry-based
API.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy |
---|
CompactSerializationCache.InternalEvictionPolicy.EvictionCandidate, CompactSerializationCache.InternalEvictionPolicy.EvictionVisitor |
Field Summary | |
---|---|
protected ConfigurableCacheMap.EvictionPolicy |
f_policy The underlying (custom) EvictionPolicy. |
Fields inherited from class com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy |
---|
f_visitorTouchCount, f_visitorTouchTime, m_ldtLastEvict |
Constructor Summary | |
---|---|
CompactSerializationCache.WrapperEvictionPolicy(ConfigurableCacheMap.EvictionPolicy policy) Construct a WrapperEvictionPolicy. |
Method Summary | |
---|---|
protected long |
calculateWeight(Binary binKey) Calculate the "weight" of the entry associated with the specified key. |
void |
entryTouched(Binary binKey) This method is called by the cache to indicate that the entry for the specified key has been touched. |
void |
entryTouched(ConfigurableCacheMap.Entry entry) This method is called by the cache to indicate that an entry has been touched. |
protected ConfigurableCacheMap.EvictionPolicy |
getConfiguredPolicy() Return the configured EvictionPolicy instance. |
void |
requestEviction(int cMaximum) This method is called by the cache when the cache requires the eviction policy to evict entries. |
Methods inherited from class com.tangosol.net.cache.CompactSerializationCache.InternalEvictionPolicy |
---|
getName, touchInternal |
Field Detail |
---|
protected final ConfigurableCacheMap.EvictionPolicy f_policy
Constructor Detail |
---|
public CompactSerializationCache.WrapperEvictionPolicy(ConfigurableCacheMap.EvictionPolicy policy)
policy
- the underlying EvictionPolicyMethod Detail |
---|
public void entryTouched(Binary binKey)
entryTouched
in class CompactSerializationCache.InternalEvictionPolicy
binKey
- the keypublic void entryTouched(ConfigurableCacheMap.Entry entry)
entryTouched
in interface ConfigurableCacheMap.EvictionPolicy
entryTouched
in class CompactSerializationCache.InternalEvictionPolicy
entry
- the Cache Entry that has been touchedprotected long calculateWeight(Binary binKey)
calculateWeight
in class CompactSerializationCache.InternalEvictionPolicy
binKey
- the key to calculate the weight forpublic void requestEviction(int cMaximum)
requestEviction
in interface ConfigurableCacheMap.EvictionPolicy
requestEviction
in class CompactSerializationCache.InternalEvictionPolicy
cMaximum
- the maximum number of units that should remain in the cache when the eviction is completeprotected ConfigurableCacheMap.EvictionPolicy getConfiguredPolicy()
configured
EvictionPolicy instance.getConfiguredPolicy
in class CompactSerializationCache.InternalEvictionPolicy
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |