|
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
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_policyThe 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 EvictionPolicy| Method Detail |
|---|
public void entryTouched(Binary binKey)
entryTouched in class CompactSerializationCache.InternalEvictionPolicybinKey - the keypublic void entryTouched(ConfigurableCacheMap.Entry entry)
entryTouched in interface ConfigurableCacheMap.EvictionPolicyentryTouched in class CompactSerializationCache.InternalEvictionPolicyentry - the Cache Entry that has been touchedprotected long calculateWeight(Binary binKey)
calculateWeight in class CompactSerializationCache.InternalEvictionPolicybinKey - the key to calculate the weight forpublic void requestEviction(int cMaximum)
requestEviction in interface ConfigurableCacheMap.EvictionPolicyrequestEviction in class CompactSerializationCache.InternalEvictionPolicycMaximum - 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® 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 | |||||||