public abstract static class RabbitMqIO.Write extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<RabbitMqMessage>,org.apache.beam.sdk.values.PCollection<?>>
PTransform to publish messages to a RabbitMQ server.| Constructor and Description |
|---|
Write() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.beam.sdk.values.PCollection<?> |
expand(org.apache.beam.sdk.values.PCollection<RabbitMqMessage> input) |
RabbitMqIO.Write |
withExchange(java.lang.String exchange,
java.lang.String exchangeType)
Defines the exchange where the messages will be sent.
|
RabbitMqIO.Write |
withExchangeDeclare(boolean exchangeDeclare)
If the exchange is not declared by another application,
RabbitMqIO can declare the
exchange itself. |
RabbitMqIO.Write |
withQueue(java.lang.String queue)
Defines the queue where the messages will be sent.
|
RabbitMqIO.Write |
withQueueDeclare(boolean queueDeclare)
If the queue is not declared by another application,
RabbitMqIO can declare the queue
itself. |
RabbitMqIO.Write |
withUri(java.lang.String uri) |
public RabbitMqIO.Write withUri(java.lang.String uri)
public RabbitMqIO.Write withExchange(java.lang.String exchange, java.lang.String exchangeType)
RabbitMqIO if you define true for withExchangeDeclare(boolean).public RabbitMqIO.Write withExchangeDeclare(boolean exchangeDeclare)
RabbitMqIO can declare the
exchange itself.exchangeDeclare - true to declare the exchange, false else.public RabbitMqIO.Write withQueue(java.lang.String queue)
RabbitMqIO if you set withQueueDeclare(boolean) to true.public RabbitMqIO.Write withQueueDeclare(boolean queueDeclare)
RabbitMqIO can declare the queue
itself.queueDeclare - true to declare the queue, false else.public org.apache.beam.sdk.values.PCollection<?> expand(org.apache.beam.sdk.values.PCollection<RabbitMqMessage> input)
expand in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<RabbitMqMessage>,org.apache.beam.sdk.values.PCollection<?>>