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
-
LockMonitor()
-
-
getExclLock()
- Get an exclusive lock.
-
getShareLock()
- Get a shared lock.
-
releaseLock()
- Release the lock claimed by the current thread.
LockMonitor
public LockMonitor()
getShareLock
public synchronized void getShareLock()
- Get a shared lock. The current thread will be blocked until
the shared lock is available.
getExclLock
public synchronized void getExclLock()
- Get an exclusive lock. The current thread will be blocked until
the exclusive lock is available.
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