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
Modifier and TypeMethodDescriptionvoid
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 Details
-
onContend
Called when the specified lock holder begins contending for the specified LockableEntry.- Parameters:
oContender
- the contending lock holderentry
- the entry being contended for
-
onUncontend
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
-