|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface BoundedConcurrentHashMap.EvictionPolicy<K,V>
Field Summary | |
---|---|
static int |
MAX_BATCH_SIZE
|
Method Summary | |
---|---|
void |
clear()
Invoked to notify EvictionPolicy implementation that all Segment entries have been cleared. |
org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V> |
createNewEntry(K key,
int hash,
org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V> next,
V value)
|
Set<org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V>> |
execute()
Invokes eviction policy algorithm and returns set of evicted entries. |
boolean |
onEntryHit(org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V> e)
Invoked to notify EvictionPolicy implementation that an entry in Segment has been accessed. |
Set<org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V>> |
onEntryMiss(org.hibernate.internal.util.collections.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.hibernate.internal.util.collections.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. |
Field Detail |
---|
static final int MAX_BATCH_SIZE
Method Detail |
---|
org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V> createNewEntry(K key, int hash, org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V> next, V value)
Set<org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V>> execute()
Set cannot be null but could possibly be an empty set.
Set<org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V>> onEntryMiss(org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V> e)
e
- accessed entry in Segment
boolean onEntryHit(org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V> e)
Note that this method is potentially invoked without holding a lock on Segment.
e
- accessed entry in Segment
void onEntryRemove(org.hibernate.internal.util.collections.BoundedConcurrentHashMap.HashEntry<K,V> e)
e
- removed entry in Segmentvoid clear()
BoundedConcurrentHashMap.Eviction strategy()
boolean thresholdExpired()
Note that this method is potentially invoked without holding a lock on Segment.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |