Package org.apache.beam.sdk.io.mqtt
Class MqttIO.ConnectionConfiguration
java.lang.Object
org.apache.beam.sdk.io.mqtt.MqttIO.ConnectionConfiguration
- All Implemented Interfaces:
 Serializable
- Enclosing class:
 MqttIO
A POJO describing a MQTT connection.
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionDescribe a connection configuration to the MQTT broker.withClientId(String clientId) Set up the client ID prefix, which is used to construct a unique client ID.withPassword(String password) withServerUri(String serverUri) Set up the MQTT broker URI.Set up the MQTT getTopic pattern.withUsername(String username)  
- 
Constructor Details
- 
ConnectionConfiguration
public ConnectionConfiguration() 
 - 
 - 
Method Details
- 
create
Describe a connection configuration to the MQTT broker. This method creates a unique random MQTT client ID.- Parameters:
 serverUri- The MQTT broker URI.topic- The MQTT getTopic pattern.- Returns:
 - A connection configuration to the MQTT broker.
 
 - 
create
 - 
withServerUri
Set up the MQTT broker URI. - 
withTopic
Set up the MQTT getTopic pattern. - 
withClientId
Set up the client ID prefix, which is used to construct a unique client ID. - 
withUsername
 - 
withPassword
 
 -