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> ref,
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> ref,
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)
@Nullable protected T execute(@Nullable ConcurrentReferenceHashMap.Reference<K,V> ref, @Nullable ConcurrentReferenceHashMap.Entry<K,V> entry, @Nullable ConcurrentReferenceHashMap.Entries entries)
ref - the found reference (or null)entry - the found entry (or null)entries - access to the underlying entries#execute(Reference, Entry)@Nullable protected T execute(@Nullable ConcurrentReferenceHashMap.Reference<K,V> ref, @Nullable ConcurrentReferenceHashMap.Entry<K,V> entry)
ConcurrentReferenceHashMap.Entries.ref - the found reference (or null)entry - the found entry (or null)#execute(Reference, Entry, Entries)