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) |
Set<Data> |
getLockedKeys() |
String |
getOwnerInfo(Data dataKey) |
long |
getRemainingLeaseTime(Data key) |
boolean |
isLocked(Data key) |
boolean |
isLockedBy(Data key,
String caller,
long threadId) |
boolean |
isTransactionallyLocked(Data key) |
boolean |
lock(Data key,
String caller,
long threadId,
long referenceId,
long leaseTime) |
boolean |
txnLock(Data key,
String caller,
long threadId,
long referenceId,
long leaseTime) |
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)
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 long getRemainingLeaseTime(Data key)
getRemainingLeaseTime
in interface LockStore
public boolean canAcquireLock(Data key, String caller, long threadId)
canAcquireLock
in interface LockStore
public boolean isTransactionallyLocked(Data key)
isTransactionallyLocked
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.