public final class LockProxySupport extends Object
Constructor and Description |
---|
LockProxySupport(ObjectNamespace namespace,
long maxLeaseTimeInMillis) |
Modifier and Type | Method and Description |
---|---|
void |
forceUnlock(NodeEngine nodeEngine,
Data key) |
int |
getLockCount(NodeEngine nodeEngine,
Data key) |
ObjectNamespace |
getNamespace() |
long |
getRemainingLeaseTime(NodeEngine nodeEngine,
Data key) |
boolean |
isLocked(NodeEngine nodeEngine,
Data key) |
boolean |
isLockedByCurrentThread(NodeEngine nodeEngine,
Data key) |
void |
lock(NodeEngine nodeEngine,
Data key) |
void |
lock(NodeEngine nodeEngine,
Data key,
long leaseTime) |
void |
lockInterruptly(NodeEngine nodeEngine,
Data key) |
void |
lockInterruptly(NodeEngine nodeEngine,
Data key,
long leaseTime) |
boolean |
tryLock(NodeEngine nodeEngine,
Data key) |
boolean |
tryLock(NodeEngine nodeEngine,
Data key,
long timeout,
TimeUnit timeunit) |
boolean |
tryLock(NodeEngine nodeEngine,
Data key,
long timeout,
TimeUnit timeunit,
long leaseTime,
TimeUnit leaseTimeunit) |
void |
unlock(NodeEngine nodeEngine,
Data key) |
public LockProxySupport(ObjectNamespace namespace, long maxLeaseTimeInMillis)
public boolean isLocked(NodeEngine nodeEngine, Data key)
public boolean isLockedByCurrentThread(NodeEngine nodeEngine, Data key)
public int getLockCount(NodeEngine nodeEngine, Data key)
public long getRemainingLeaseTime(NodeEngine nodeEngine, Data key)
public void lock(NodeEngine nodeEngine, Data key)
public void lock(NodeEngine nodeEngine, Data key, long leaseTime)
public void lockInterruptly(NodeEngine nodeEngine, Data key) throws InterruptedException
InterruptedException
public void lockInterruptly(NodeEngine nodeEngine, Data key, long leaseTime) throws InterruptedException
InterruptedException
public boolean tryLock(NodeEngine nodeEngine, Data key)
public boolean tryLock(NodeEngine nodeEngine, Data key, long timeout, TimeUnit timeunit) throws InterruptedException
InterruptedException
public boolean tryLock(NodeEngine nodeEngine, Data key, long timeout, TimeUnit timeunit, long leaseTime, TimeUnit leaseTimeunit) throws InterruptedException
InterruptedException
public void unlock(NodeEngine nodeEngine, Data key)
public void forceUnlock(NodeEngine nodeEngine, Data key)
public ObjectNamespace getNamespace()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.