|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| 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
protected abstract class CompactSerializationCache.InternalEvictionPolicy
InternalEvictionPolicy is an abstract base implementation of an ConfigurableCacheMap.EvictionPolicy used by this CompactSerializationCache.
| Nested Class Summary | |
|---|---|
protected class |
CompactSerializationCache.InternalEvictionPolicy.EvictionCandidateEvictionCandidate represents a candidate for eviction during the calculation of the eviction set, representing the key, its relative "weight" as assigned by the configured ConfigurableCacheMap.EvictionPolicy as well as its size in units. |
protected class |
CompactSerializationCache.InternalEvictionPolicy.EvictionVisitorSafeEntryVisitor implementation that calculates the set of eviction candidates. |
| Field Summary | |
|---|---|
protected BinaryLongMap.EntryVisitor |
f_visitorTouchCountThe singleton stateless visitor to update the touch-count map. |
protected BinaryLongMap.EntryVisitor |
f_visitorTouchTimeThe singleton stateless visitor to update the touch-time map. |
protected long |
m_ldtLastEvictThe date-time of the last eviction. |
| Constructor Summary | |
|---|---|
protected |
CompactSerializationCache.InternalEvictionPolicy() |
| Method Summary | |
|---|---|
protected abstract 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 abstract ConfigurableCacheMap.EvictionPolicy |
getConfiguredPolicy()Return the configured EvictionPolicy instance. |
java.lang.String |
getName()Obtain the name of the eviction policy. |
void |
requestEviction(int cMaximum)This method is called by the cache when the cache requires the eviction policy to evict entries. |
protected void |
touchInternal(Binary binKey)Update the internally maintained "touch"-related statistics for the specified key (e.g. touch time and touch count). |
| Field Detail |
|---|
protected long m_ldtLastEvict
protected final BinaryLongMap.EntryVisitor f_visitorTouchCount
protected final BinaryLongMap.EntryVisitor f_visitorTouchTime
| Constructor Detail |
|---|
protected CompactSerializationCache.InternalEvictionPolicy()
| Method Detail |
|---|
public void requestEviction(int cMaximum)
requestEviction in interface ConfigurableCacheMap.EvictionPolicycMaximum - the maximum number of units that should remain in the cache when the eviction is completepublic void entryTouched(ConfigurableCacheMap.Entry entry)
entryTouched in interface ConfigurableCacheMap.EvictionPolicyentry - the Cache Entry that has been touchedpublic java.lang.String getName()
getName in interface ConfigurableCacheMap.EvictionPolicyprotected abstract ConfigurableCacheMap.EvictionPolicy getConfiguredPolicy()
configured EvictionPolicy instance.protected abstract long calculateWeight(Binary binKey)
binKey - the key to calculate the weight forpublic void entryTouched(Binary binKey)
binKey - the keyprotected void touchInternal(Binary binKey)
binKey - the key being touched
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||