public class NotifyConnectionErrorListener extends Object implements ConnectionStateListener
Constructor and Description |
---|
NotifyConnectionErrorListener(ProxyGroup proxyConnection)
needs connection to iterate over registered items
|
Modifier and Type | Method and Description |
---|---|
void |
stateChange(Connection connection,
ConnectionState state,
Throwable error)
either sends connection state straight away, or schedules it for later execution
|
public NotifyConnectionErrorListener(ProxyGroup proxyConnection)
proxyConnection
- public void stateChange(Connection connection, ConnectionState state, Throwable error)
stateChange
in interface ConnectionStateListener
connection
- the connection that changedstate
- the new state of the connectionerror
- some error information that lead to the new state (can be null
if it was not an error)ConnectionStateListener.stateChange(org.eclipse.scada.core.client.Connection, org.eclipse.scada.core.client.ConnectionState, java.lang.Throwable)