public interface MultiConnectionListener
Modifier and Type | Interface and Description |
---|---|
static class |
MultiConnectionListener.MultiConnectionListenerBase
When implmenting MultiConnectionListener, if you extend this base class you'll have version protection.
|
Modifier and Type | Method and Description |
---|---|
void |
connectionEstablished(LiveViewConnectionControl connection,
boolean isCurrent)
This will be called whenever any connection succeeds, including the very first one.
|
void |
reconnectFailed(LiveViewConnectionControl failedConnection,
int failureCount)
This will be called when any attempt to make a connection fails.
|
void |
roughFailover(LiveViewConnectionControl failedConnection)
This will be called if the current server has failed and there is no other server currently connected to fail over to.
|
void |
secondaryConnectionLost(LiveViewConnectionControl lostConnection)
This will be called when one of the secondary connections has been lost.
|
void |
smoothFailover(LiveViewConnectionControl failedConnection,
LiveViewConnectionControl connection)
This will be called if the current server has failed, but there is already another server ready to fail over to.
|
void smoothFailover(LiveViewConnectionControl failedConnection, LiveViewConnectionControl connection)
failedConnection
- the connection that was lost, which was the current connectionconnection
- the new current connection, which is already up and runningvoid roughFailover(LiveViewConnectionControl failedConnection)
failedConnection
- void connectionEstablished(LiveViewConnectionControl connection, boolean isCurrent)
connection
- isCurrent
- true if this is now the current connection.void secondaryConnectionLost(LiveViewConnectionControl lostConnection)
lostConnection
- void reconnectFailed(LiveViewConnectionControl failedConnection, int failureCount)
failedConnection
- failureCount
- The number of times we have tried and failed to connect to this Connection, since the last successful connection to it
(or since startup, if we have never successfully connected to it).