org.apache.qpid.requestreply
Class PingPongBouncer.FailoverNotifier

java.lang.Object
  extended by org.apache.qpid.requestreply.PingPongBouncer.FailoverNotifier
All Implemented Interfaces:
org.apache.qpid.jms.ConnectionListener
Enclosing class:
PingPongBouncer

public static class PingPongBouncer.FailoverNotifier
extends Object
implements org.apache.qpid.jms.ConnectionListener

A connection listener that logs out any failover complete events. Could do more interesting things with this at some point...


Constructor Summary
PingPongBouncer.FailoverNotifier()
           
 
Method Summary
 void bytesReceived(long count)
           
 void bytesSent(long count)
           
 void failoverComplete()
           
 boolean preFailover(boolean redirect)
           
 boolean preResubscribe()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingPongBouncer.FailoverNotifier

public PingPongBouncer.FailoverNotifier()
Method Detail

bytesSent

public void bytesSent(long count)
Specified by:
bytesSent in interface org.apache.qpid.jms.ConnectionListener

bytesReceived

public void bytesReceived(long count)
Specified by:
bytesReceived in interface org.apache.qpid.jms.ConnectionListener

preFailover

public boolean preFailover(boolean redirect)
Specified by:
preFailover in interface org.apache.qpid.jms.ConnectionListener

preResubscribe

public boolean preResubscribe()
Specified by:
preResubscribe in interface org.apache.qpid.jms.ConnectionListener

failoverComplete

public void failoverComplete()
Specified by:
failoverComplete in interface org.apache.qpid.jms.ConnectionListener


Licensed to the Apache Software Foundation