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)
Deprecated.
This constructor will be removed in a future version of Beam, please use
#create(String, String)} and
withClientId(String) instead. |
MqttIO.ConnectionConfiguration |
withClientId(java.lang.String clientId)
Set up the client ID prefix, which is used to construct an 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.@Deprecated public static MqttIO.ConnectionConfiguration create(java.lang.String serverUri, java.lang.String topic, java.lang.String clientId)
withClientId(String)
instead.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 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)