private abstract class ConcurrentReferenceHashMap.Task<T>
extends java.lang.Object
run
against a ConcurrentReferenceHashMap.Segment
.Modifier and Type | Field and Description |
---|---|
private java.util.EnumSet<ConcurrentReferenceHashMap.TaskOption> |
options |
Constructor and Description |
---|
Task(ConcurrentReferenceHashMap.TaskOption... options) |
Modifier and Type | Method and Description |
---|---|
protected T |
execute(ConcurrentReferenceHashMap.Reference<K,V> reference,
ConcurrentReferenceHashMap.Entry<K,V> entry)
Convenience method that can be used for tasks that do not need access to
ConcurrentReferenceHashMap.Entries . |
protected T |
execute(ConcurrentReferenceHashMap.Reference<K,V> reference,
ConcurrentReferenceHashMap.Entry<K,V> entry,
ConcurrentReferenceHashMap.Entries entries)
Execute the task.
|
boolean |
hasOption(ConcurrentReferenceHashMap.TaskOption option) |
private final java.util.EnumSet<ConcurrentReferenceHashMap.TaskOption> options
public Task(ConcurrentReferenceHashMap.TaskOption... options)
public boolean hasOption(ConcurrentReferenceHashMap.TaskOption option)
protected T execute(ConcurrentReferenceHashMap.Reference<K,V> reference, ConcurrentReferenceHashMap.Entry<K,V> entry, ConcurrentReferenceHashMap.Entries entries)
reference
- the found reference or null
entry
- the found entry or null
entries
- access to the underlying entries#execute(Reference, Entry)
protected T execute(ConcurrentReferenceHashMap.Reference<K,V> reference, ConcurrentReferenceHashMap.Entry<K,V> entry)
ConcurrentReferenceHashMap.Entries
.reference
- the found reference or null
entry
- the found entry or null
#execute(Reference, Entry, Entries)