Class ConcurrentLinkedHashMap.AddTask
- java.lang.Object
-
- com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.AbstractTask
-
- com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.AddTask
-
- All Implemented Interfaces:
ConcurrentLinkedHashMap.Task
,java.lang.Runnable
- Enclosing class:
- ConcurrentLinkedHashMap<K,V>
final class ConcurrentLinkedHashMap.AddTask extends ConcurrentLinkedHashMap.AbstractTask
Adds the node to the page replacement policy.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ConcurrentLinkedHashMap.Node
node
(package private) int
weight
-
Fields inherited from class com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.AbstractTask
order, task
-
-
Constructor Summary
Constructors Constructor Description AddTask(ConcurrentLinkedHashMap.Node node, int weight)
-
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
-
-
-
-
Field Detail
-
node
final ConcurrentLinkedHashMap.Node node
-
weight
final int weight
-
-
Constructor Detail
-
AddTask
AddTask(ConcurrentLinkedHashMap.Node node, int weight)
-
-
Method Detail
-
run
public void run()
-
isWrite
public boolean isWrite()
Description copied from interface:ConcurrentLinkedHashMap.Task
If the task represents an add, modify, or remove operation.
-
-