public class LockProxyImpl extends SerializationHelper implements HazelcastInstanceAwareInstance, LockProxy, DataSerializable
| Constructor and Description |
|---|
LockProxyImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys this instance cluster-wide.
|
boolean |
equals(Object o) |
void |
forceUnlock()
Releases the lock regardless of the lock owner.
|
Object |
getId()
Returns the unique id for this instance.
|
Instance.InstanceType |
getInstanceType()
Returns instance type such as map, set, list, lock, topic, multimap, id generator
|
LocalLockStats |
getLocalLockStats() |
Object |
getLockObject()
Returns the lock object, the key for this lock instance.
|
LockOperationsCounter |
getLockOperationCounter() |
int |
hashCode() |
boolean |
isLocked() |
void |
lock() |
void |
lockInterruptibly() |
Condition |
newCondition() |
void |
readData(DataInput in) |
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance) |
String |
toString() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
void |
unlock() |
void |
writeData(DataOutput out) |
readByteArray, readObject, writeByteArray, writeObjectpublic void setHazelcastInstance(HazelcastInstance hazelcastInstance)
setHazelcastInstance in interface HazelcastInstanceAwarepublic void writeData(DataOutput out) throws IOException
writeData in interface DataSerializableIOExceptionpublic void readData(DataInput in) throws IOException
readData in interface DataSerializableIOExceptionpublic void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LockInterruptedExceptionpublic boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
tryLock in interface LockInterruptedExceptionpublic void forceUnlock()
ILockforceUnlock in interface ILockpublic Condition newCondition()
newCondition in interface Lockpublic Instance.InstanceType getInstanceType()
InstancegetInstanceType in interface Instancepublic void destroy()
Instancepublic Object getLockObject()
ILockgetLockObject in interface ILockpublic Object getId()
Instancepublic LocalLockStats getLocalLockStats()
getLocalLockStats in interface ILockpublic LockOperationsCounter getLockOperationCounter()
getLockOperationCounter in interface LockProxyCopyright © 2013 Hazelcast, Inc.. All rights reserved.