|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.messenger.Lock
Lock is a simple lock.
| Field Summary | |
private int |
count
|
private java.lang.Thread |
owner
|
| 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 |
| Field Detail |
private java.lang.Thread owner
private int count
| Constructor Detail |
public Lock()
| Method Detail |
public void acquire()
java.lang.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 | ||||||||||