public static interface BoundedConcurrentHashMap.EvictionPolicy<K,V>
Modifier and Type | Method and Description |
---|---|
void |
clear()
Invoked to notify EvictionPolicy implementation that all Segment entries have been
cleared.
|
org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V> |
createNewEntry(K key,
int hash,
org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V> next,
V value) |
void |
onEntryHit(org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V> e)
Invoked to notify EvictionPolicy implementation that an entry in Segment has been
accessed.
|
Set<org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V>> |
onEntryMiss(org.infinispan.util.concurrent.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(org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V> e)
Invoked to notify EvictionPolicy implementation that an entry e has been removed from
Segment.
|
org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V> createNewEntry(K key, int hash, org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V> next, V value)
Set<org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V>> onEntryMiss(org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V> e)
e
- accessed entry in Segmentvoid onEntryHit(org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V> e)
Note that this method is potentially invoked without holding a lock on Segment.
e
- accessed entry in Segmentvoid onEntryRemove(org.infinispan.util.concurrent.BoundedConcurrentHashMap.HashEntry<K,V> e)
e
- removed entry in Segmentvoid clear()
Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.