Interface ClientManager.ConnectCallback

All Known Implementing Classes:
AbstractMqttMessageDrivenChannelAdapter, MqttPahoMessageDrivenChannelAdapter, Mqttv5PahoMessageDrivenChannelAdapter
Enclosing interface:
ClientManager<T,C>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ClientManager.ConnectCallback
A contract for a custom callback on connectComplete event from the client.
See Also:
  • MqttCallback.connectComplete(boolean, java.lang.String)
  • MqttCallbackExtended.connectComplete(boolean, java.lang.String)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    connectComplete(boolean isReconnect)
    Called when the connection to the server is completed successfully.
  • Method Details

    • connectComplete

      void connectComplete(boolean isReconnect)
      Called when the connection to the server is completed successfully.
      Parameters:
      isReconnect - if true, the connection was the result of automatic reconnect.