|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectionListener
Method Summary | |
---|---|
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. |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |