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 Details

    • 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 holder
      entry - 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 holder
      entry - the entry no longer being contended for