org.jboss.jms.client.container
Class FailoverValveInterceptor
java.lang.Object
org.jboss.jms.client.container.FailoverValveInterceptor
- All Implemented Interfaces:
- FailureDetector
- public class FailoverValveInterceptor
- extends java.lang.Object
- implements FailureDetector
An interceptor that acts as a failover valve: it allows all invocations to go through as long
as there is no failover in progress (valve is open), and holds all invocations while client-side
failover is taking place (valve is closed). The interceptor is also a failover detector, in that
it catches "failure-triggering" exceptions, and notifies the failover command center.
The interceptor fields org.jboss.jms.client.Valve's method calls.
It is a PER_INSTANCE interceptor.
An instance of this interceptor must guard access to each connection, session, producer, consumer
and queue browser delegate.
- Version:
- $Revision: 2685 $
$Id: FailoverValveInterceptor.java 2685 2007-05-15 07:56:12Z timfox $
- Author:
- Ovidiu Feodorov, Clebert Suconic
Method Summary |
java.lang.String |
getName()
|
java.lang.Object |
invoke(Invocation invocation)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FailoverValveInterceptor
public FailoverValveInterceptor()
getName
public java.lang.String getName()
invoke
public java.lang.Object invoke(Invocation invocation)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
toString
public java.lang.String toString()
Copyright © 2006 JBoss Inc. All Rights Reserved.