|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.Valve
A simple valve with no support for re-opening.
Field Summary | |
static int |
CLOSED
The valve is in hold state |
static int |
CLOSING
The valve is in holding state |
protected int |
invocations
The invocation count |
static int |
OPEN
The valve is open |
protected int |
state
The state |
protected Object |
stateLock
The state lock |
Constructor Summary | |
|
Valve()
Create a valve in the open state |
protected |
Valve(int state)
Create a valve with the give initial state |
Method Summary | |
void |
afterInvocation()
Invoked after an invocation |
boolean |
beforeInvocation()
Invoked before an invocation |
void |
closed()
Invoked after closing |
void |
closing()
Invoked before closing |
boolean |
isClosed()
Are we closed? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OPEN
public static final int CLOSING
public static final int CLOSED
protected Object stateLock
protected int state
protected int invocations
Constructor Detail |
public Valve()
protected Valve(int state)
state
- the initial stateMethod Detail |
public boolean isClosed()
public boolean beforeInvocation()
public void afterInvocation()
public void closing()
public void closed()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |