Package com.tangosol.util
Interface SegmentedConcurrentMap.ContentionObserver
-
- Enclosing class:
- SegmentedConcurrentMap
public static interface SegmentedConcurrentMap.ContentionObserver
ContentionObserver is used to observe the contention lock-related actions performed on the concurrent map.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onContend(Object oContender, SegmentedConcurrentMap.LockableEntry entry)
Called when the specified lock holder begins contending for the specified LockableEntry.void
onUncontend(Object oContender, SegmentedConcurrentMap.LockableEntry entry)
Called when the specified lock holder stops contending for the specified LockableEntry.
-
-
-
Method Detail
-
onContend
void onContend(Object oContender, SegmentedConcurrentMap.LockableEntry entry)
Called when the specified lock holder begins contending for the specified LockableEntry.- Parameters:
oContender
- the contending lock holderentry
- the entry being contended for
-
onUncontend
void onUncontend(Object oContender, SegmentedConcurrentMap.LockableEntry entry)
Called when the specified lock holder stops contending for the specified LockableEntry.- Parameters:
oContender
- the previously contending lock holderentry
- the entry no longer being contended for
-
-