org.omg.CosConcurrencyControl
Interface LockSetOperations

All Known Subinterfaces:
LockSet
All Known Implementing Classes:
_LockSetStub, LockSet, LockSetPOA, LockSetPOATie

public interface LockSetOperations

The LockSet interface provides operations to aquire and release locks on behalf of the calling thread or transaction


Method Summary
 void change_mode(lock_mode held_mode, lock_mode new_mode)
          Changes the mode of a single lock
 void lock(lock_mode mode)
          Acquires a lock on the specified lock set in the specified mode
 boolean try_lock(lock_mode mode)
          Attempts to acquire a lock on the specified lock set.
 void unlock(lock_mode mode)
          Drops a single lock on the specified lock set in the specified mode
 

Method Detail

lock

void lock(lock_mode mode)
Acquires a lock on the specified lock set in the specified mode


try_lock

boolean try_lock(lock_mode mode)
Attempts to acquire a lock on the specified lock set.


unlock

void unlock(lock_mode mode)
            throws LockNotHeld
Drops a single lock on the specified lock set in the specified mode

Throws:
LockNotHeld

change_mode

void change_mode(lock_mode held_mode,
                 lock_mode new_mode)
                 throws LockNotHeld
Changes the mode of a single lock

Throws:
LockNotHeld