org.jboss.jms.client.container
Class FailoverValveInterceptor

java.lang.Object
  extended by 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: 3248 $ $Id: FailoverValveInterceptor.java 3248 2007-10-26 20:14:06Z timfox $
Author:
Ovidiu Feodorov, Clebert Suconic

Constructor Summary
FailoverValveInterceptor()
           
 
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
 

Constructor Detail

FailoverValveInterceptor

public FailoverValveInterceptor()
Method Detail

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()
Overrides:
toString in class java.lang.Object


Copyright © 2006 JBoss Inc. All Rights Reserved.