static class BoundedConcurrentHashMap.NullEvictionPolicy<K,V> extends Object implements BoundedConcurrentHashMap.EvictionPolicy<K,V>
MAX_BATCH_SIZE| Constructor and Description |
|---|
NullEvictionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Invoked to notify EvictionPolicy implementation that all Segment entries have been
cleared.
|
BoundedConcurrentHashMap.HashEntry<K,V> |
createNewEntry(K key,
int hash,
BoundedConcurrentHashMap.HashEntry<K,V> next,
V value) |
Set<BoundedConcurrentHashMap.HashEntry<K,V>> |
execute()
Invokes eviction policy algorithm and returns set of evicted entries.
|
boolean |
onEntryHit(BoundedConcurrentHashMap.HashEntry<K,V> e)
Invoked to notify EvictionPolicy implementation that an entry in Segment has been
accessed.
|
Set<BoundedConcurrentHashMap.HashEntry<K,V>> |
onEntryMiss(BoundedConcurrentHashMap.HashEntry<K,V> e)
Invoked to notify EvictionPolicy implementation that there has been an attempt to access
an entry in Segment, however that entry was not present in Segment.
|
void |
onEntryRemove(BoundedConcurrentHashMap.HashEntry<K,V> e)
Invoked to notify EvictionPolicy implementation that an entry e has been removed from
Segment.
|
BoundedConcurrentHashMap.Eviction |
strategy()
Returns type of eviction algorithm (strategy).
|
boolean |
thresholdExpired()
Returns true if batching threshold has expired, false otherwise.
|
public void clear()
BoundedConcurrentHashMap.EvictionPolicyclear in interface BoundedConcurrentHashMap.EvictionPolicy<K,V>public Set<BoundedConcurrentHashMap.HashEntry<K,V>> execute()
BoundedConcurrentHashMap.EvictionPolicyexecute in interface BoundedConcurrentHashMap.EvictionPolicy<K,V>public boolean onEntryHit(BoundedConcurrentHashMap.HashEntry<K,V> e)
BoundedConcurrentHashMap.EvictionPolicyonEntryHit in interface BoundedConcurrentHashMap.EvictionPolicy<K,V>e - accessed entry in Segmentpublic Set<BoundedConcurrentHashMap.HashEntry<K,V>> onEntryMiss(BoundedConcurrentHashMap.HashEntry<K,V> e)
BoundedConcurrentHashMap.EvictionPolicyonEntryMiss in interface BoundedConcurrentHashMap.EvictionPolicy<K,V>e - accessed entry in Segmentpublic void onEntryRemove(BoundedConcurrentHashMap.HashEntry<K,V> e)
BoundedConcurrentHashMap.EvictionPolicyonEntryRemove in interface BoundedConcurrentHashMap.EvictionPolicy<K,V>e - removed entry in Segmentpublic boolean thresholdExpired()
BoundedConcurrentHashMap.EvictionPolicythresholdExpired in interface BoundedConcurrentHashMap.EvictionPolicy<K,V>public BoundedConcurrentHashMap.Eviction strategy()
BoundedConcurrentHashMap.EvictionPolicystrategy in interface BoundedConcurrentHashMap.EvictionPolicy<K,V>public BoundedConcurrentHashMap.HashEntry<K,V> createNewEntry(K key, int hash, BoundedConcurrentHashMap.HashEntry<K,V> next, V value)
createNewEntry in interface BoundedConcurrentHashMap.EvictionPolicy<K,V>Copyright © 2021 JBoss by Red Hat. All rights reserved.