public interface ModbusClientConnectionObserver
| Modifier and Type | Method and Description |
|---|---|
void |
connectionClosed(ModbusClient client,
ModbusClientConfig config,
Throwable exception,
boolean willReconnect)
A connection has been closed.
|
void |
connectionOpened(ModbusClient client,
ModbusClientConfig config)
A connection has been established.
|
void connectionOpened(ModbusClient client, ModbusClientConfig config)
client - the client that has established the connectionconfig - the client's configurationvoid connectionClosed(ModbusClient client, ModbusClientConfig config, Throwable exception, boolean willReconnect)
client - the client whose connection has been closedconfig - the client's configurationexception - an exception, if anywillReconnect - true if the client will automatically attempt to
re-establish the connection