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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.integration.support.locks.LockRegistry
executeLocked, executeLocked, executeLocked, executeLocked
-
Constructor Details
-
HazelcastLockRegistry
public HazelcastLockRegistry(com.hazelcast.core.HazelcastInstance hazelcastInstance)
-
-
Method Details
-
obtain
Description copied from interface:LockRegistry
Obtain 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.
-