Class GemfireLockRegistry
java.lang.Object
org.springframework.integration.gemfire.util.GemfireLockRegistry
- All Implemented Interfaces:
LockRegistry
public class GemfireLockRegistry extends Object implements LockRegistry
Implementation of
LockRegistry providing a distributed lock using Gemfire.- Since:
- 4.0
- Author:
- Artem Bilan
-
Field Summary
Fields Modifier and Type Field Description static StringLOCK_REGISTRY_REGION -
Constructor Summary
Constructors Constructor Description GemfireLockRegistry(org.apache.geode.cache.Cache cache)GemfireLockRegistry(org.apache.geode.cache.Region<?,?> region) -
Method Summary
-
Field Details
-
LOCK_REGISTRY_REGION
- See Also:
- Constant Field Values
-
-
Constructor Details
-
GemfireLockRegistry
public GemfireLockRegistry(org.apache.geode.cache.Cache cache) -
GemfireLockRegistry
public GemfireLockRegistry(org.apache.geode.cache.Region<?,?> region)
-
-
Method Details
-
obtain
Description copied from interface:LockRegistryObtains 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.
-