Constructor and Description |
---|
LockStoreProxy(LockStoreContainer container,
ObjectNamespace namespace) |
Modifier and Type | Method and Description |
---|---|
boolean |
canAcquireLock(Data key,
String caller,
long threadId) |
boolean |
extendLeaseTime(Data key,
String caller,
long threadId,
long leaseTime) |
boolean |
forceUnlock(Data key) |
int |
getLockCount(Data key) |
int |
getLockedEntryCount() |
Set<Data> |
getLockedKeys() |
String |
getOwnerInfo(Data dataKey) |
long |
getRemainingLeaseTime(Data key) |
boolean |
isLocked(Data key) |
boolean |
isLockedBy(Data key,
String caller,
long threadId) |
boolean |
lock(Data key,
String caller,
long threadId,
long referenceId,
long leaseTime) |
boolean |
shouldBlockReads(Data key) |
boolean |
txnLock(Data key,
String caller,
long threadId,
long referenceId,
long leaseTime,
boolean blockReads) |
boolean |
unlock(Data key,
String caller,
long threadId,
long referenceId) |
public LockStoreProxy(LockStoreContainer container, ObjectNamespace namespace)
public boolean txnLock(Data key, String caller, long threadId, long referenceId, long leaseTime, boolean blockReads)
public boolean extendLeaseTime(Data key, String caller, long threadId, long leaseTime)
extendLeaseTime
in interface LockStore
public boolean isLockedBy(Data key, String caller, long threadId)
isLockedBy
in interface LockStore
public int getLockCount(Data key)
getLockCount
in interface LockStore
public int getLockedEntryCount()
getLockedEntryCount
in interface LockStore
public long getRemainingLeaseTime(Data key)
getRemainingLeaseTime
in interface LockStore
public boolean canAcquireLock(Data key, String caller, long threadId)
canAcquireLock
in interface LockStore
public boolean shouldBlockReads(Data key)
shouldBlockReads
in interface LockStore
public Set<Data> getLockedKeys()
getLockedKeys
in interface LockStore
public boolean forceUnlock(Data key)
forceUnlock
in interface LockStore
public String getOwnerInfo(Data dataKey)
getOwnerInfo
in interface LockStore
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.