org.omg.CosConcurrencyControl

Interface TransactionalLockSetOperations

public interface TransactionalLockSetOperations

The TransactionalLockSet interface provides operations to acquire and release locks on a lock set on behalf of a specific transaction.
Method Summary
voidchange_mode(Coordinator current, lock_mode held_mode, lock_mode new_mode)
Changes the mode of a single lock
LockCoordinatorget_coordinator(Coordinator which)
Returns the lock coordinator associated with the specified transaction
voidlock(Coordinator current, lock_mode mode)
Acquires a lock on the specified lock set in the specified mode
booleantry_lock(Coordinator current, lock_mode mode)
Attempts to acquire a lock on the specified lock set
voidunlock(Coordinator current, lock_mode mode)
Drops a single lock on the specified lock set in the specified mode

Method Detail

change_mode

public void change_mode(Coordinator current, lock_mode held_mode, lock_mode new_mode)
Changes the mode of a single lock

get_coordinator

public LockCoordinator get_coordinator(Coordinator which)
Returns the lock coordinator associated with the specified transaction

lock

public void lock(Coordinator current, lock_mode mode)
Acquires a lock on the specified lock set in the specified mode

try_lock

public boolean try_lock(Coordinator current, lock_mode mode)
Attempts to acquire a lock on the specified lock set

unlock

public void unlock(Coordinator current, lock_mode mode)
Drops a single lock on the specified lock set in the specified mode