com.hazelcast.core
Interface ILock

All Superinterfaces:
Instance, Lock

public interface ILock
extends Lock, Instance


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hazelcast.core.Instance
Instance.InstanceType
 
Method Summary
 void forceUnlock()
          Releases the lock regardless of the lock owner.
 LocalLockStats getLocalLockStats()
           
 Object getLockObject()
          Returns the lock object, the key for this lock instance.
 boolean isLocked()
           
 
Methods inherited from interface java.util.concurrent.locks.Lock
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
 
Methods inherited from interface com.hazelcast.core.Instance
destroy, getId, getInstanceType
 

Method Detail

getLockObject

Object getLockObject()
Returns the lock object, the key for this lock instance.

Returns:
lock object.

getLocalLockStats

LocalLockStats getLocalLockStats()

isLocked

boolean isLocked()

forceUnlock

void forceUnlock()
Releases the lock regardless of the lock owner. It always successfully unlocks, never blocks and returns immediately.



Copyright © 2008-2012 Hazelcast, Inc. All Rights Reserved.