|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.messenger.Lock
public class Lock
Lock is a simple lock.
| Constructor Summary | |
|---|---|
Lock()
|
|
| Method Summary | |
|---|---|
void |
acquire()
Acquires the lock, blocking until the lock can be acquired |
boolean |
hasLock()
|
void |
release()
Release the lock. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lock()
| Method Detail |
|---|
public void acquire()
InterruptedException
public void release()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic boolean hasLock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||