public void addLockInformation(Object key, boolean contention, boolean failLock) {
      if (!isEnabled()) {
         return;
      }

      syncOffer(Stat.MOST_LOCKED_KEYS, key);

      if (contention) {
         syncOffer(Stat.MOST_CONTENDED_KEYS, key);
      }
      if (failLock) {
         syncOffer(Stat.MOST_FAILED_KEYS, key);
      }
   }
public void addLockInformation ( Object key , boolean contention , boolean failLock ) { if ( ! isEnabled ( ) ) { return ; } syncOffer ( Stat . MOST_LOCKED_KEYS , key ) ; if ( contention ) { syncOffer ( Stat . MOST_CONTENDED_KEYS , key ) ; } if ( failLock ) { syncOffer ( Stat . MOST_FAILED_KEYS , key ) ; } }
Adds the lock information about the key, namely if the key suffer some contention and if the keys was locked or
not.

@param contention {@code true} if the key was contented.
@param failLock   {@code true} if the key was not locked.