com.hazelcast.concurrent.lock
Class LockStoreProxy
java.lang.Object
com.hazelcast.concurrent.lock.LockStoreProxy
- All Implemented Interfaces:
- LockStore
public final class LockStoreProxy
- extends Object
- implements LockStore
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockStoreProxy
public LockStoreProxy(LockStoreContainer container,
ObjectNamespace namespace)
lock
public boolean lock(Data key,
String caller,
long threadId,
long ttl)
- Specified by:
lock
in interface LockStore
txnLock
public boolean txnLock(Data key,
String caller,
long threadId,
long ttl)
- Specified by:
txnLock
in interface LockStore
extendLeaseTime
public boolean extendLeaseTime(Data key,
String caller,
long threadId,
long ttl)
- Specified by:
extendLeaseTime
in interface LockStore
unlock
public boolean unlock(Data key,
String caller,
long threadId)
- Specified by:
unlock
in interface LockStore
isLocked
public boolean isLocked(Data key)
- Specified by:
isLocked
in interface LockStore
isLockedBy
public boolean isLockedBy(Data key,
String caller,
long threadId)
- Specified by:
isLockedBy
in interface LockStore
getLockCount
public int getLockCount(Data key)
- Specified by:
getLockCount
in interface LockStore
getRemainingLeaseTime
public long getRemainingLeaseTime(Data key)
- Specified by:
getRemainingLeaseTime
in interface LockStore
canAcquireLock
public boolean canAcquireLock(Data key,
String caller,
long threadId)
- Specified by:
canAcquireLock
in interface LockStore
isTransactionallyLocked
public boolean isTransactionallyLocked(Data key)
- Specified by:
isTransactionallyLocked
in interface LockStore
getLockedKeys
public Set<Data> getLockedKeys()
- Specified by:
getLockedKeys
in interface LockStore
forceUnlock
public boolean forceUnlock(Data key)
- Specified by:
forceUnlock
in interface LockStore
getOwnerInfo
public String getOwnerInfo(Data dataKey)
- Specified by:
getOwnerInfo
in interface LockStore
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.