public interface ConnectionListener
Modifier and Type | Method and Description |
---|---|
void |
bytesReceived(long count)
Called when some bytes have been received on a connection
|
void |
bytesSent(long count)
Called when bytes have been transmitted to the server
|
void |
failoverComplete()
Called once failover has completed successfully.
|
boolean |
preFailover(boolean redirect)
Called after the infrastructure has detected that failover is required but before attempting failover.
|
boolean |
preResubscribe()
Called after connection has been made to another broker after failover has been started but before
any resubscription has been done.
|
void bytesSent(long count)
count
- the number of bytes sent in total since the connection was openedvoid bytesReceived(long count)
count
- the number of bytes received in total since the connection was openedboolean preFailover(boolean redirect)
redirect
- true if the broker requested redirect. false if failover is occurring due to a connection error.boolean preResubscribe()
void failoverComplete()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.