Package org.openspaces.core.map
Class LockHandle
java.lang.Object
org.openspaces.core.map.LockHandle
- All Implemented Interfaces:
Externalizable,Serializable
A lock handle allowing to perform map operations when the key is locked. Internally holds the
transaction representing the lock and it can be accessed to be passed to any operation that needs
to be performed under the same lock.
With GigaMap this is done automatically by just passing the lock
handle to an operation.
- Author:
- kimchy
- See Also:
-
Constructor Details
-
LockHandle
public LockHandle()
-
-
Method Details
-
unlock
public void unlock()Unlocks the given key. -
getTransaction
Returns the transaction representing the lock on the given key. -
getKey
Returns the key that is locked. -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-