Interface ModbusClientConnectionObserver


public interface ModbusClientConnectionObserver
API for an observer of ModbusClient connection state.
  • Method Details

    • connectionOpened

      void connectionOpened(ModbusClient client, ModbusClientConfig config)
      A connection has been established.
      Parameters:
      client - the client that has established the connection
      config - the client's configuration
    • connectionClosed

      void connectionClosed(ModbusClient client, ModbusClientConfig config, Throwable exception, boolean willReconnect)
      A connection has been closed.
      Parameters:
      client - the client whose connection has been closed
      config - the client's configuration
      exception - an exception, if any
      willReconnect - true if the client will automatically attempt to re-establish the connection