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, writeObject
public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
setHazelcastInstance
in interface HazelcastInstanceAware
public void writeData(DataOutput out) throws IOException
writeData
in interface DataSerializable
IOException
public void readData(DataInput in) throws IOException
readData
in interface DataSerializable
IOException
public void lockInterruptibly() throws InterruptedException
lockInterruptibly
in interface Lock
InterruptedException
public boolean tryLock(long time, TimeUnit unit) throws InterruptedException
tryLock
in interface Lock
InterruptedException
public void forceUnlock()
ILock
forceUnlock
in interface ILock
public Condition newCondition()
newCondition
in interface Lock
public Instance.InstanceType getInstanceType()
Instance
getInstanceType
in interface Instance
public void destroy()
Instance
public Object getLockObject()
ILock
getLockObject
in interface ILock
public Object getId()
Instance
public LocalLockStats getLocalLockStats()
getLocalLockStats
in interface ILock
public LockOperationsCounter getLockOperationCounter()
getLockOperationCounter
in interface LockProxy
Copyright © 2013 Hazelcast, Inc.. All rights reserved.