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 timeout,
TimeUnit unit) |
boolean |
tryLock(long timeout,
TimeUnit unit,
long leaseTime,
TimeUnit leaseUnit) |
void |
unlock() |
deregisterListener, destroy, equals, getClient, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invokeInterruptibly, invokeOnPartition, onDestroy, onInitialize, onShutdown, registerListener, setContext, throwExceptionIfNull, toData, toObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, 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 timeout,
TimeUnit unit)
throws InterruptedException
tryLock in interface ILocktryLock in interface LockInterruptedExceptionpublic boolean tryLock(long timeout,
TimeUnit unit,
long leaseTime,
TimeUnit leaseUnit)
throws InterruptedException
tryLock in interface ILockInterruptedExceptionpublic void unlock()
public Condition newCondition()
newCondition in interface ILocknewCondition in interface Lockprotected <T> T invoke(ClientRequest req)
invoke in class ClientProxyCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.