|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
protected static interface SegmentedHashMap.EntryAction
An EntryAction encapsulates a logical action to be executed in the context of a key (that may or may not exist in the map). If an Entry exists in the map for the key, invokeFound is called; otherwise invokeNotFound is called. <p/> EntryAction instances are state-aware and are invoked with an opaque context object supplied by the action client. The meanings of the supplied context and return-values are polymorphic in EntryAction type. Depending on the EntryAction type, it may or may not be invoked while holding the segment lock for the key. <p/> An EntryAction should not acquire additional segment-locks.
| Method Summary | |
|---|---|
java.lang.Object |
invokeFound(java.lang.Object oKey, java.lang.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. |
java.lang.Object |
invokeNotFound(java.lang.Object oKey, java.lang.Object oContext, SegmentedHashMap.Entry[] aeBucket, int nBucket)Invoke some action, holding the segment lock, when no matching Entry is found. |
| Method Detail |
|---|
java.lang.Object invokeFound(java.lang.Object oKey,
java.lang.Object oContext,
SegmentedHashMap.Entry[] aeBucket,
int nBucket,
SegmentedHashMap.Entry entryPrev,
SegmentedHashMap.Entry entryCur)
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 found
java.lang.Object invokeNotFound(java.lang.Object oKey,
java.lang.Object oContext,
SegmentedHashMap.Entry[] aeBucket,
int nBucket)
oKey - the key to which the action is appliedoContext - opaque context specific to the actionaeBucket - the bucket arraynBucket - the index into the bucket array
|
Oracle® Coherence Java API Reference v3.5 E14977-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||