Class ConcurrentLinkedHashMap.UpdateTask
- java.lang.Object
-
- com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.AbstractTask
-
- com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.ReadTask
-
- com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.UpdateTask
-
- All Implemented Interfaces:
ConcurrentLinkedHashMap.Task
,java.lang.Runnable
- Enclosing class:
- ConcurrentLinkedHashMap<K,V>
final class ConcurrentLinkedHashMap.UpdateTask extends ConcurrentLinkedHashMap.ReadTask
Updates the weighted size and evicts an entry on overflow.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
weightDifference
-
Fields inherited from class com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.ReadTask
node
-
Fields inherited from class com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.AbstractTask
order, task
-
-
Constructor Summary
Constructors Constructor Description UpdateTask(ConcurrentLinkedHashMap.Node node, int weightDifference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isWrite()
If the task represents an add, modify, or remove operation.void
run()
-
Methods inherited from class com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.AbstractTask
getNext, getOrder, setNext
-
-
-
-
Constructor Detail
-
UpdateTask
public UpdateTask(ConcurrentLinkedHashMap.Node node, int weightDifference)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classConcurrentLinkedHashMap.ReadTask
-
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.ReadTask
-
-