Class MqttBrokerConnectionConfig

  • @NonNullByDefault
    public class MqttBrokerConnectionConfig
    extends Object
    Contains configuration for a MqttBrokerConnection. Necessary to add a new broker connection the MqttService.
    David Graeff - Initial contribution, Mark Herwege - Added flag for hostname validation
    • Field Detail

      • name

        public @Nullable String name
      • host

        public @Nullable String host
      • port

        public @Nullable Integer port
      • secure

        public boolean secure
      • hostnameValidated

        public boolean hostnameValidated
      • 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, secure flag and hostname validation flag
        toString in class Object