com.hazelcast.concurrent.lock
public final class LockProxySupport extends Object
Constructor and Description |
---|
LockProxySupport(ObjectNamespace namespace) |
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 ttl) |
void |
lockInterruptly(NodeEngine nodeEngine,
Data key) |
void |
lockInterruptly(NodeEngine nodeEngine,
Data key,
long ttl) |
boolean |
tryLock(NodeEngine nodeEngine,
Data key) |
boolean |
tryLock(NodeEngine nodeEngine,
Data key,
long timeout,
TimeUnit timeunit) |
void |
unlock(NodeEngine nodeEngine,
Data key) |
public LockProxySupport(ObjectNamespace namespace)
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 ttl)
public void lockInterruptly(NodeEngine nodeEngine, Data key) throws InterruptedException
InterruptedException
public void lockInterruptly(NodeEngine nodeEngine, Data key, long ttl) 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 void unlock(NodeEngine nodeEngine, Data key)
public void forceUnlock(NodeEngine nodeEngine, Data key)
public ObjectNamespace getNamespace()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.