public static class MultiConnectionListener.MultiConnectionListenerBase extends Object implements MultiConnectionListener
MultiConnectionListener.MultiConnectionListenerBase| Constructor and Description |
|---|
MultiConnectionListenerBase() |
| 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.
|
public void smoothFailover(LiveViewConnectionControl failedConnection, LiveViewConnectionControl connection)
MultiConnectionListenersmoothFailover in interface MultiConnectionListenerfailedConnection - the connection that was lost, which was the current connectionconnection - the new current connection, which is already up and runningpublic void roughFailover(LiveViewConnectionControl failedConnection)
MultiConnectionListenerroughFailover in interface MultiConnectionListenerpublic void connectionEstablished(LiveViewConnectionControl connection, boolean isCurrent)
MultiConnectionListenerconnectionEstablished in interface MultiConnectionListenerisCurrent - true if this is now the current connection.public void secondaryConnectionLost(LiveViewConnectionControl lostConnection)
MultiConnectionListenersecondaryConnectionLost in interface MultiConnectionListenerpublic void reconnectFailed(LiveViewConnectionControl failedConnection, int failureCount)
MultiConnectionListenerreconnectFailed in interface MultiConnectionListenerfailureCount - 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).Copyright © 2015–2018 Cloud Software Group, Inc.. All rights reserved.