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