|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jms.client.container.ClosedInterceptor
An interceptor for checking closed state. It waits for other invocations to complete before allowing the close. I.e. it performs the function of a "valve". This interceptor is PER_INSTANCE.
Constructor Summary | |
ClosedInterceptor()
|
Method Summary | |
protected boolean |
checkCloseAlreadyDone()
Check the close has not already been done and wait for all invocations to complete |
protected boolean |
checkClosingAlreadyDone()
Check the closing notification has not already been done |
protected void |
closed()
Closed the object |
protected void |
closing()
Closing the object |
protected void |
done()
Mark the object as no longer inuse |
java.lang.String |
getName()
|
java.lang.Object |
invoke(Invocation invocation)
|
protected void |
maintainRelatives(Invocation invocation)
Close children and remove from parent |
protected void |
removeSelf(Invocation invocation)
Remove from parent |
static java.lang.String |
stateToString(int state)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClosedInterceptor()
Method Detail |
public static java.lang.String stateToString(int state)
public java.lang.String toString()
public java.lang.String getName()
public java.lang.Object invoke(Invocation invocation) throws java.lang.Throwable
java.lang.Throwable
protected boolean checkClosingAlreadyDone() throws java.lang.Throwable
java.lang.Throwable
protected void closing() throws java.lang.Throwable
java.lang.Throwable
protected boolean checkCloseAlreadyDone() throws java.lang.Throwable
java.lang.Throwable
protected void closed() throws java.lang.Throwable
java.lang.Throwable
protected void done() throws java.lang.Throwable
java.lang.Throwable
protected void maintainRelatives(Invocation invocation)
invocation
- the invocationprotected void removeSelf(Invocation invocation)
invocation
- the invocation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |