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()
ILock
getLockObject
in interface ILock
public void lockInterruptibly() throws InterruptedException
lockInterruptibly
in interface Lock
InterruptedException
public boolean tryLock(long time, TimeUnit timeunit)
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 getId()
Instance
public LocalLockStats getLocalLockStats()
getLocalLockStats
in interface ILock
Copyright © 2013 Hazelcast, Inc.. All rights reserved.