All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bea.jolt.LockMonitor

java.lang.Object
   |
   +----bea.jolt.LockMonitor

public class LockMonitor
extends Object
This utility class implements a simple share/exclusive lock.

See Also:
call, commit

Constructor Index

 o LockMonitor()

Method Index

 o getExclLock()
Get an exclusive lock.
 o getShareLock()
Get a shared lock.
 o releaseLock()
Release the lock claimed by the current thread.

Constructors

 o LockMonitor
 public LockMonitor()

Methods

 o getShareLock
 public synchronized void getShareLock()
Get a shared lock. The current thread will be blocked until the shared lock is available.

 o getExclLock
 public synchronized void getExclLock()
Get an exclusive lock. The current thread will be blocked until the exclusive lock is available.

 o releaseLock
 public synchronized void releaseLock()
Release the lock claimed by the current thread. All waiting threads will compete for the lock.


All Packages  Class Hierarchy  This Package  Previous  Next  Index