|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.thread.Valve
public final class Valve
A Valve is a synchronization object used enable or disable the "flow" of concurrent processing.
Constructor Summary | |
---|---|
Valve(boolean on)
|
Method Summary | |
---|---|
void |
decrement()
Decrements the use counter of the valve. |
void |
increment()
Increments the use counter of the valve. |
void |
turnOff()
Turns the valve off. |
void |
turnOn()
Turns the valve on. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Valve(boolean on)
Method Detail |
---|
public void turnOn() throws java.lang.InterruptedException
java.lang.InterruptedException
public void turnOff() throws java.lang.InterruptedException
java.lang.InterruptedException
public void increment() throws java.lang.InterruptedException
java.lang.InterruptedException
public void decrement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |