|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.core.map.LockHandle
public class LockHandle
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.
Constructor Summary | |
---|---|
LockHandle()
|
Method Summary | |
---|---|
Object |
getKey()
Returns the key that is locked. |
Transaction |
getTransaction()
Returns the transaction representing the lock on the given key. |
void |
readExternal(ObjectInput in)
|
void |
unlock()
Unlocks the given key. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LockHandle()
Method Detail |
---|
public void unlock()
public Transaction getTransaction()
public Object getKey()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |