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