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
ConstructorsConstructorDescriptionHazelcastLockRegistry(com.hazelcast.core.HazelcastInstance hazelcastInstance) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:LockRegistryObtain the lock associated with the parameter object.- Specified by:
obtainin interfaceLockRegistry- Parameters:
lockKey- The object with which the lock is associated.- Returns:
- The associated lock.
-