Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


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
 void onContend(java.lang.Object oContender, SegmentedConcurrentMap.LockableEntry entry)
          Called when the specified lock holder begins contending for the specified LockableEntry.
 void onUncontend(java.lang.Object oContender, SegmentedConcurrentMap.LockableEntry entry)
          Called when the specified lock holder stops contending for the specified LockableEntry.

 

Method Detail

onContend

void onContend(java.lang.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(java.lang.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

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.