Class GemfireLockRegistry
java.lang.Object
org.springframework.integration.gemfire.util.GemfireLockRegistry
- All Implemented Interfaces:
org.springframework.integration.support.locks.LockRegistry
public class GemfireLockRegistry
extends java.lang.Object
implements org.springframework.integration.support.locks.LockRegistry
Implementation of
LockRegistry providing a distributed lock using Gemfire.- Since:
- 4.0
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOCK_REGISTRY_REGION -
Constructor Summary
Constructors Constructor Description GemfireLockRegistry(org.apache.geode.cache.Cache cache)GemfireLockRegistry(org.apache.geode.cache.Region<?,?> region) -
Method Summary
Modifier and Type Method Description java.util.concurrent.locks.Lockobtain(java.lang.Object lockKey)
-
Field Details
-
LOCK_REGISTRY_REGION
public static final java.lang.String 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
public java.util.concurrent.locks.Lock obtain(java.lang.Object lockKey)- Specified by:
obtainin interfaceorg.springframework.integration.support.locks.LockRegistry
-