Class ConcurrentLinkedHashMap.UpdateTask
java.lang.Object
ConcurrentLinkedHashMap<K,V>.com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.AbstractTask
ConcurrentLinkedHashMap<K,V>.com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.ReadTask
com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.UpdateTask
- All Implemented Interfaces:
ConcurrentLinkedHashMap.Task
,Runnable
- Enclosing class:
ConcurrentLinkedHashMap<K,
V>
Updates the weighted size and evicts an entry on overflow.
-
Field Summary
FieldsFields inherited from class com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.ReadTask
node
Fields inherited from class com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.AbstractTask
order, task
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.AbstractTask
getNext, getOrder, setNext
-
Field Details
-
weightDifference
final int weightDifference
-
-
Constructor Details
-
UpdateTask
-
-
Method Details
-
run
public void run() -
isWrite
public boolean isWrite()Description copied from interface:ConcurrentLinkedHashMap.Task
If the task represents an add, modify, or remove operation.- Specified by:
isWrite
in interfaceConcurrentLinkedHashMap.Task
- Overrides:
isWrite
in classConcurrentLinkedHashMap<K,
V>.ReadTask
-