Interface LockIdSupplier<K>

Type Parameters:
K - type of key

public interface LockIdSupplier<K>
Used by some inheritors of AbstractLockBasedProxyManager when it needs to calculate numeric value of locks.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LockIdSupplier<?>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    toLockId(K key)
    Returns the lock-id specified with the key.
  • Field Details

  • Method Details

    • toLockId

      long toLockId(K key)
      Returns the lock-id specified with the key.
      Parameters:
      key - the key of bucket
      Returns:
      id of lock specified with key