|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.messaging.util.ClearableSemaphore
public class ClearableSemaphore
| Field Summary | |
|---|---|
protected Logger |
log
|
| Constructor Summary | |
|---|---|
ClearableSemaphore(int permits)
|
|
| Method Summary | |
|---|---|
void |
acquire()
|
void |
disable()
|
void |
enable()
|
void |
release()
|
boolean |
tryAcquire(long timeout)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Logger log
| Constructor Detail |
|---|
public ClearableSemaphore(int permits)
| Method Detail |
|---|
public void acquire()
throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean tryAcquire(long timeout)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void release()
public void disable()
public void enable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||