Class HazelcastLockRegistry
java.lang.Object
org.springframework.integration.hazelcast.lock.HazelcastLockRegistry
- All Implemented Interfaces:
LockRegistry
A
LockRegistry
implementation Hazelcast distributed locks.- Author:
- Artem Bilan
-
Constructor Summary
ConstructorDescriptionHazelcastLockRegistry
(com.hazelcast.core.HazelcastInstance hazelcastInstance) -
Method Summary
-
Constructor Details
-
HazelcastLockRegistry
public HazelcastLockRegistry(com.hazelcast.core.HazelcastInstance hazelcastInstance)
-
-
Method Details
-
obtain
Description copied from interface:LockRegistry
Obtains the lock associated with the parameter object.- Specified by:
obtain
in interfaceLockRegistry
- Parameters:
lockKey
- The object with which the lock is associated.- Returns:
- The associated lock.
-