Class HazelcastLockRegistry

java.lang.Object
org.springframework.integration.hazelcast.lock.HazelcastLockRegistry
All Implemented Interfaces:
LockRegistry

public class HazelcastLockRegistry extends Object implements LockRegistry
A LockRegistry implementation Hazelcast distributed locks.
Author:
Artem Bilan
  • Constructor Details

    • HazelcastLockRegistry

      public HazelcastLockRegistry(com.hazelcast.core.HazelcastInstance hazelcastInstance)
  • Method Details

    • obtain

      public Lock obtain(Object lockKey)
      Description copied from interface: LockRegistry
      Obtain the lock associated with the parameter object.
      Specified by:
      obtain in interface LockRegistry
      Parameters:
      lockKey - The object with which the lock is associated.
      Returns:
      The associated lock.