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) |
static MqttIO.ConnectionConfiguration |
create(java.lang.String serverUri,
java.lang.String topic)
Describe a connection configuration to the MQTT broker.
|
MqttIO.ConnectionConfiguration |
withClientId(java.lang.String clientId)
Set up the client ID prefix, which is used to construct a unique client ID.
|
MqttIO.ConnectionConfiguration |
withPassword(java.lang.String password) |
MqttIO.ConnectionConfiguration |
withServerUri(java.lang.String serverUri)
Set up the MQTT broker URI.
|
MqttIO.ConnectionConfiguration |
withTopic(java.lang.String topic)
Set up the MQTT getTopic pattern.
|
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)
public MqttIO.ConnectionConfiguration withServerUri(java.lang.String serverUri)
public MqttIO.ConnectionConfiguration withTopic(java.lang.String topic)
public MqttIO.ConnectionConfiguration withClientId(java.lang.String clientId)
public MqttIO.ConnectionConfiguration withUsername(java.lang.String username)
public MqttIO.ConnectionConfiguration withPassword(java.lang.String password)