protected class SegmentedConcurrentMap.TruncateAction extends SegmentedHashMap.EntryActionAdapter
lock holder thread
and unlocking SegmentedConcurrentMap.LockableEntry
entryCur
.Modifier | Constructor and Description |
---|---|
protected |
TruncateAction() |
Modifier and Type | Method and Description |
---|---|
Object |
invokeFound(Object oKey,
Object oContext,
SegmentedHashMap.Entry[] aeBucket,
int nBucket,
SegmentedHashMap.Entry entryPrev,
SegmentedHashMap.Entry entryCur)
Invoke some action, holding the segment lock, when a matching Entry
is found.
|
Object |
invokeNotFound(Object oKey,
Object oContext,
SegmentedHashMap.Entry[] aeBucket,
int nBucket)
Invoke some action, holding the segment lock, when no matching Entry
is found.
|
isComplete
public Object invokeFound(Object oKey, Object oContext, SegmentedHashMap.Entry[] aeBucket, int nBucket, SegmentedHashMap.Entry entryPrev, SegmentedHashMap.Entry entryCur)
SegmentedHashMap.EntryActionAdapter
invokeFound
in interface SegmentedHashMap.EntryAction
invokeFound
in class SegmentedHashMap.EntryActionAdapter
oKey
- the key to which the action is appliedoContext
- opaque context specific to the actionaeBucket
- the bucket arraynBucket
- the index into the bucket arrayentryPrev
- the Entry object immediately preceding the
Entry that was found, or nullentryCur
- the Entry object that was foundpublic Object invokeNotFound(Object oKey, Object oContext, SegmentedHashMap.Entry[] aeBucket, int nBucket)
SegmentedHashMap.EntryActionAdapter
invokeNotFound
in interface SegmentedHashMap.EntryAction
invokeNotFound
in class SegmentedHashMap.EntryActionAdapter
oKey
- the key to which the action is appliedoContext
- opaque context specific to the actionaeBucket
- the bucket arraynBucket
- the index into the bucket array