org.jboss.jms.client.remoting
Class ConsolidatedRemotingConnectionListener

java.lang.Object
  extended byorg.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener

public class ConsolidatedRemotingConnectionListener
extends java.lang.Object

The ONLY remoting connection listener for a JMS connection's underlying remoting connection. Added to the remoting connection when the JMS connection is created, and removed when the JMS connection is closed. Any second tier listeners (the JMS connection ExceptionListener, and the HA's connection failure detector) are registered with this consolidated listener and not with the remoting connection directly.

Version:
$Revision: 2715 $ $Id: ConsolidatedRemotingConnectionListener.java 2715 2007-05-19 15:31:23Z timfox $
Author:
Ovidiu Feodorov

Constructor Summary
ConsolidatedRemotingConnectionListener()
           
 
Method Summary
 void addJMSExceptionListener(ExceptionListener jmsExceptionListener)
           
 void clear()
          Clears all delegate listeners
 ExceptionListener getJMSExceptionListener()
           
 void handleConnectionException(java.lang.Throwable throwable, Client client)
           
 void setConnectionState(ConnectionState state)
           
 void setDelegateListener(ConnectionFailureListener l)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsolidatedRemotingConnectionListener

public ConsolidatedRemotingConnectionListener()
Method Detail

handleConnectionException

public void handleConnectionException(java.lang.Throwable throwable,
                                      Client client)

setDelegateListener

public void setDelegateListener(ConnectionFailureListener l)

addJMSExceptionListener

public void addJMSExceptionListener(ExceptionListener jmsExceptionListener)

getJMSExceptionListener

public ExceptionListener getJMSExceptionListener()

clear

public void clear()
Clears all delegate listeners


setConnectionState

public void setConnectionState(ConnectionState state)

toString

public java.lang.String toString()


Copyright © 2006 JBoss Inc. All Rights Reserved.