public abstract static class MqttIO.Write extends PTransform<PCollection<byte[]>,PDone>
PTransform to write and send a message to a MQTT server.name| Constructor and Description |
|---|
Write() |
| Modifier and Type | Method and Description |
|---|---|
PDone |
expand(PCollection<byte[]> input) |
void |
populateDisplayData(DisplayData.Builder builder) |
void |
validate(PCollection<byte[]> input) |
MqttIO.Write |
withConnectionConfiguration(MqttIO.ConnectionConfiguration configuration)
Define MQTT connection configuration used to connect to the MQTT broker.
|
MqttIO.Write |
withRetained(boolean retained)
Whether or not the publish message should be retained by the messaging engine.
|
getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, toStringpublic MqttIO.Write withConnectionConfiguration(MqttIO.ConnectionConfiguration configuration)
public MqttIO.Write withRetained(boolean retained)
false will clear the
retained message from the server. The default value is false.
When a subscriber connects, it gets the latest retained message (else it doesn't get any
existing message, it will have to wait a new incoming message).retained - Whether or not the messaging engine should retain the message.MqttIO.Write PTransform with the corresponding retained configuration.public PDone expand(PCollection<byte[]> input)
expand in class PTransform<PCollection<byte[]>,PDone>public void validate(PCollection<byte[]> input)
validate in class PTransform<PCollection<byte[]>,PDone>public void populateDisplayData(DisplayData.Builder builder)
populateDisplayData in interface HasDisplayDatapopulateDisplayData in class PTransform<PCollection<byte[]>,PDone>Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.