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)
Defines the existing exchange where the messages will be sent.
|
RabbitMqIO.Write |
withExchange(java.lang.String exchange,
java.lang.String exchangeType)
Defines the to-be-declared exchange where the messages will be sent.
|
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)
By calling this function exchangeDeclare will be set to true.
To publish to an existing exchange, use withExchange(String)
public RabbitMqIO.Write withExchange(java.lang.String exchange)
By calling this function exchangeDeclare will be set to false
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<?>>