org.apache.activemq.thread
Class Valve

java.lang.Object
  extended by org.apache.activemq.thread.Valve

Deprecated.

@Deprecated
public final class Valve
extends java.lang.Object

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

Valve

public Valve(boolean on)
Deprecated. 
Method Detail

turnOn

public void turnOn()
            throws java.lang.InterruptedException
Deprecated. 
Turns the valve on. This method blocks until the valve is off.

Throws:
java.lang.InterruptedException - if wait is interrupted

isOn

public boolean isOn()
Deprecated. 

turnOff

public void turnOff()
             throws java.lang.InterruptedException
Deprecated. 
Turns the valve off. This method blocks until the valve is on and the valve is not in use.

Throws:
java.lang.InterruptedException - if wait is interrupted

increment

public void increment()
               throws java.lang.InterruptedException
Deprecated. 
Increments the use counter of the valve. This method blocks if the valve is off, or is being turned off.

Throws:
java.lang.InterruptedException - if wait is interrupted

decrement

public void decrement()
Deprecated. 
Decrements the use counter of the valve.



Copyright © 2005-2016. All Rights Reserved.