public class ClientLockProxy extends ClientProxy implements ILock
| Constructor and Description |
|---|
ClientLockProxy(String serviceName,
String objectId) |
| Modifier and Type | Method and Description |
|---|---|
void |
forceUnlock() |
Object |
getKey()
Deprecated.
|
int |
getLockCount() |
long |
getRemainingLeaseTime() |
protected <T> T |
invoke(ClientRequest req) |
boolean |
isLocked() |
boolean |
isLockedByCurrentThread() |
void |
lock() |
void |
lock(long leaseTime,
TimeUnit timeUnit) |
void |
lockInterruptibly() |
Condition |
newCondition() |
ICondition |
newCondition(String name) |
String |
toString() |
boolean |
tryLock() |
boolean |
tryLock(long time,
TimeUnit unit) |
void |
unlock() |
destroy, equals, getClient, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invokeInterruptibly, invokeOnPartition, listen, listen, onDestroy, onInitialize, onShutdown, setContext, stopListening, throwExceptionIfNull, toData, toObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, getId, getName, getPartitionKey, getServiceName@Deprecated public Object getKey()
public boolean isLockedByCurrentThread()
isLockedByCurrentThread in interface ILockpublic int getLockCount()
getLockCount in interface ILockpublic long getRemainingLeaseTime()
getRemainingLeaseTime in interface ILockpublic void forceUnlock()
forceUnlock in interface ILockpublic ICondition newCondition(String name)
newCondition in interface ILockpublic void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LockInterruptedExceptionpublic boolean tryLock()
public boolean tryLock(long time,
TimeUnit unit)
throws InterruptedException
tryLock in interface ILocktryLock in interface LockInterruptedExceptionpublic void unlock()
public Condition newCondition()
newCondition in interface ILocknewCondition in interface Lockprotected <T> T invoke(ClientRequest req)
invoke in class ClientProxyCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.