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: 1917 $ $Id: ConsolidatedRemotingConnectionListener.java 1917 2007-01-08 20:26:12Z clebert.suconic@jboss.com $
Author:
Ovidiu Feodorov

Constructor Summary
ConsolidatedRemotingConnectionListener()
           
 
Method Summary
 boolean addDelegateListener(ConnectionListener l)
           
 void addJMSExceptionListener(ExceptionListener jmsExceptionListener)
           
 void clear()
          Clears all delegate listeners
 ExceptionListener getJMSExceptionListener()
           
 void handleConnectionException(java.lang.Throwable throwable, Client client)
           
 void setConnectionState(ConnectionState state)
           
 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)

addDelegateListener

public boolean addDelegateListener(ConnectionListener 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.