Class MqttBrokerConnectionConfig


  • @NonNullByDefault
    public class MqttBrokerConnectionConfig
    extends Object
    Contains configuration for a MqttBrokerConnection. Necessary to add a new broker connection the MqttService.
    Author:
    David Graeff - Initial contribution
    • Field Detail

      • name

        public @Nullable String name
      • host

        public @Nullable String host
      • port

        public @Nullable Integer port
      • secure

        public boolean secure
      • username

        public @Nullable String username
      • password

        public @Nullable String password
      • clientID

        public @Nullable String clientID
      • keepAlive

        public @Nullable Integer keepAlive
        Keepalive in seconds
      • lwtTopic

        public @Nullable String lwtTopic
      • lwtMessage

        public @Nullable String lwtMessage
      • lwtRetain

        public Boolean lwtRetain
    • Constructor Detail

      • MqttBrokerConnectionConfig

        public MqttBrokerConnectionConfig()
    • Method Detail

      • getBrokerID

        public String getBrokerID()
        Return the brokerID of this connection. This is either the name or host:port(:s), for instance "myhost:8080:s". This method will return an empty string, if none of the parameters is set.
      • toString

        public String toString()
        Output the name, host, port and secure flag
        Overrides:
        toString in class Object