Instance.InstanceType| Constructor and Description |
|---|
LockClientProxy(Object object,
HazelcastClient client) |
| 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.
|
int |
hashCode() |
boolean |
isLocked() |
void |
lock() |
void |
lockInterruptibly() |
Condition |
newCondition() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit timeunit) |
void |
unlock() |
public LockClientProxy(Object object, HazelcastClient client)
public Object getLockObject()
ILockgetLockObject in interface ILockpublic void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LockInterruptedExceptionpublic boolean tryLock(long time,
TimeUnit timeunit)
public void forceUnlock()
ILockforceUnlock in interface ILockpublic Condition newCondition()
newCondition in interface Lockpublic Instance.InstanceType getInstanceType()
InstancegetInstanceType in interface Instancepublic void destroy()
Instancepublic Object getId()
Instancepublic LocalLockStats getLocalLockStats()
getLocalLockStats in interface ILockCopyright © 2013 Hazelcast, Inc.. All rights reserved.