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 ttl) |
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 ttl) |
boolean |
txnLock(Data key,
String caller,
long threadId,
long ttl) |
boolean |
unlock(Data key,
String caller,
long threadId) |
public LockStoreProxy(LockStoreContainer container, ObjectNamespace namespace)
public boolean extendLeaseTime(Data key, String caller, long threadId, long ttl)
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 © 2014 Hazelcast, Inc.. All Rights Reserved.