Interface LockRegistry

All Known Subinterfaces:
ExpirableLockRegistry, RenewableLockRegistry
All Known Implementing Classes:
DefaultLockRegistry, HazelcastLockRegistry, JdbcLockRegistry, PassThruLockRegistry, RedisLockRegistry, ZookeeperLockRegistry
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LockRegistry
Strategy for maintaining a registry of shared locks.
Since:
2.1.1
Author:
Oleg Zhurakousky, Gary Russell
  • Method Summary

    Modifier and Type
    Method
    Description
    obtain(Object lockKey)
    Obtains the lock associated with the parameter object.
  • Method Details

    • obtain

      Lock obtain(Object lockKey)
      Obtains the lock associated with the parameter object.
      Parameters:
      lockKey - The object with which the lock is associated.
      Returns:
      The associated lock.