com.hazelcast.concurrent.lock
Interface LockStore

All Known Implementing Classes:
LockStoreImpl, LockStoreProxy

public interface LockStore


Method Summary
 boolean canAcquireLock(Data key, String caller, long threadId)
           
 boolean extendLeaseTime(Data key, String caller, long threadId, long ttl)
           
 boolean forceUnlock(Data dataKey)
           
 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)
           
 

Method Detail

lock

boolean lock(Data key,
             String caller,
             long threadId,
             long ttl)

txnLock

boolean txnLock(Data key,
                String caller,
                long threadId,
                long ttl)

extendLeaseTime

boolean extendLeaseTime(Data key,
                        String caller,
                        long threadId,
                        long ttl)

unlock

boolean unlock(Data key,
               String caller,
               long threadId)

isLocked

boolean isLocked(Data key)

isLockedBy

boolean isLockedBy(Data key,
                   String caller,
                   long threadId)

getLockCount

int getLockCount(Data key)

getRemainingLeaseTime

long getRemainingLeaseTime(Data key)

canAcquireLock

boolean canAcquireLock(Data key,
                       String caller,
                       long threadId)

isTransactionallyLocked

boolean isTransactionallyLocked(Data key)

getLockedKeys

Set<Data> getLockedKeys()

forceUnlock

boolean forceUnlock(Data dataKey)

getOwnerInfo

String getOwnerInfo(Data dataKey)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.