public abstract static class MqttIO.ConnectionConfiguration
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ConnectionConfiguration() |
Modifier and Type | Method and Description |
---|---|
static MqttIO.ConnectionConfiguration |
create(java.lang.String serverUri,
java.lang.String topic)
Describe a connection configuration to the MQTT broker.
|
static MqttIO.ConnectionConfiguration |
create(java.lang.String serverUri,
java.lang.String topic,
java.lang.String clientId)
Describe a connection configuration to the MQTT broker.
|
MqttIO.ConnectionConfiguration |
withPassword(java.lang.String password) |
MqttIO.ConnectionConfiguration |
withUsername(java.lang.String username) |
public static MqttIO.ConnectionConfiguration create(java.lang.String serverUri, java.lang.String topic)
serverUri
- The MQTT broker URI.topic
- The MQTT getTopic pattern.public static MqttIO.ConnectionConfiguration create(java.lang.String serverUri, java.lang.String topic, java.lang.String clientId)
serverUri
- The MQTT broker URI.topic
- The MQTT getTopic pattern.clientId
- A client ID prefix, used to construct an unique client ID.public MqttIO.ConnectionConfiguration withUsername(java.lang.String username)
public MqttIO.ConnectionConfiguration withPassword(java.lang.String password)