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(com.gemstone.gemfire.cache.Cache cache) |
GemfireLockRegistry(com.gemstone.gemfire.cache.Region<?,?> region) |
public static final String LOCK_REGISTRY_REGION
public GemfireLockRegistry(com.gemstone.gemfire.cache.Cache cache)
public GemfireLockRegistry(com.gemstone.gemfire.cache.Region<?,?> region)
public Lock obtain(Object lockKey)
LockRegistry
obtain
in interface LockRegistry
lockKey
- The object with which the lock is associated.