public class GemfireLockRegistry extends java.lang.Object implements LockRegistry
LockRegistry providing a distributed lock using Gemfire.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LOCK_REGISTRY_REGION |
| Constructor and Description |
|---|
GemfireLockRegistry(org.apache.geode.cache.Cache cache) |
GemfireLockRegistry(org.apache.geode.cache.Region<?,?> region) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.locks.Lock |
obtain(java.lang.Object lockKey)
Obtains the lock associated with the parameter object.
|
public static final java.lang.String LOCK_REGISTRY_REGION
public GemfireLockRegistry(org.apache.geode.cache.Cache cache)
public GemfireLockRegistry(org.apache.geode.cache.Region<?,?> region)
public java.util.concurrent.locks.Lock obtain(java.lang.Object lockKey)
LockRegistryobtain in interface LockRegistrylockKey - The object with which the lock is associated.