org.openorb.ccs.kernel
public class TransactionalLockSet extends TransactionalLockSetPOA
Method Summary | |
---|---|
void | change_mode(Coordinator current, lock_mode held_mode, lock_mode new_mode)
Changes the mode of a single lock for a specific transaction.
|
LockCoordinator | get_coordinator(Coordinator which)
returns the lock coordinator associated with the specified transaction |
boolean | isLockable(lock_mode mode)
return whether the current lock mode permits the required lock mode |
void | lock(Coordinator current, lock_mode mode)
Acquires a lock in the specified mode for a specific transaction |
void | setRelatedLockSet(TransactionalLockSet relatedLockSet)
sets the related lock set |
void | storeRolledBackedTransactions(Coordinator current)
stores the rolledBacked transactions, since they cannot be locked again |
boolean | try_lock(Coordinator current, lock_mode mode)
Attempts to acquire a lock on the specified lock set for a specific transaction.
|
void | unlock(Coordinator current, lock_mode mode)
Drops a single lock on the specified lock set in the specified mode
for a specific transaction.
|
void | unlockAll(Coordinator current)
drop all locks held by the specified transaction |
Parameters: current The reference to the coordinator of the transaction. held_mode The current held mode. new_mode The new mode.
Throws: org.omg.CosConcurrencyControl.LockNotHeld When no lock is held.
Parameters: which the reference to the coordinator of the transaction
Returns: the lock coordinator
Parameters: mode the required lock mode
Returns: true if the lock set can be locked to this mode
Parameters: current the reference to the coordinator of the transaction mode the specified mode
Parameters: relatedLockSet the related lock set
Parameters: current the reference to the coordinator of the transaction
Parameters: current The reference to the coordinator of the transaction. mode The lock mode.
Returns: True whether the lock was successful, false otherwise.
Parameters: current The reference to the coordinator of the transaction. mode The lock mode.
Throws: org.omg.CosConcurrencyControl.LockNotHeld If called on a lock that is not held.
Parameters: current the reference to the coordinator of the transaction