Constructor and Description |
---|
TXLockerMap() |
Modifier and Type | Method and Description |
---|---|
void |
lock(java.lang.String lockID)
A blocking call that returns upon successfully locking
lockID or
throws a TXException . |
void |
lock(java.lang.String[] lockIDs)
Acquires the locks in the order specified by
lockIDs . |
void |
unlock(java.lang.String lockID)
A blocking call that returns upon successfully release
lockID or
throws a TXException . |
void |
unlock(java.lang.String[] lockIDs)
Releases the locks in the order specified by
lockIDs . |
public void lock(java.lang.String lockID) throws TXException
lockID
or
throws a TXException
. Locking a group involves synchronously
checkpointing its state and maintaining in memory its locked status.lock
in interface TXLocker
lockID
- TXException
public void lock(java.lang.String[] lockIDs) throws TXException
lockIDs
.lockIDs
- TXException
public void unlock(java.lang.String lockID) throws TXException
lockID
or
throws a TXException
.lockID
- TXException
public void unlock(java.lang.String[] lockIDs) throws TXException
lockIDs
.lockIDs
- TXException