|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.thread.Valve
@Deprecated public final class Valve
A Valve is a synchronization object used enable or disable the "flow" of concurrent processing.
| Constructor Summary | |
|---|---|
Valve(boolean on)
Deprecated. |
|
| Method Summary | |
|---|---|
void |
decrement()
Deprecated. Decrements the use counter of the valve. |
void |
increment()
Deprecated. Increments the use counter of the valve. |
boolean |
isOn()
Deprecated. |
void |
turnOff()
Deprecated. Turns the valve off. |
void |
turnOn()
Deprecated. 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 - if wait is interruptedpublic boolean isOn()
public void turnOff()
throws java.lang.InterruptedException
java.lang.InterruptedException - if wait is interrupted
public void increment()
throws java.lang.InterruptedException
java.lang.InterruptedException - if wait is interruptedpublic void decrement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||