public abstract static class JmsIO.Write extends PTransform<PCollection<java.lang.String>,PDone>
PTransform
to write to a JMS queue. See JmsIO
for more information on usage
and configuration.name
Constructor and Description |
---|
Write() |
Modifier and Type | Method and Description |
---|---|
PDone |
expand(PCollection<java.lang.String> input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
JmsIO.Write |
withConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
Specify the JMS connection factory to connect to the JMS broker.
|
JmsIO.Write |
withPassword(java.lang.String password)
Define the password to connect to the JMS broker (authenticated).
|
JmsIO.Write |
withQueue(java.lang.String queue)
Specify the JMS queue destination name where to send messages to.
|
JmsIO.Write |
withTopic(java.lang.String topic)
Specify the JMS topic destination name where to send messages to.
|
JmsIO.Write |
withUsername(java.lang.String username)
Define the username to connect to the JMS broker (authenticated).
|
compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, populateDisplayData, toString, validate
public JmsIO.Write withConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
For instance:
.apply(JmsIO.write().withConnectionFactory(myConnectionFactory)
connectionFactory
- The JMS ConnectionFactory
.JmsIO.Read
.public JmsIO.Write withQueue(java.lang.String queue)
JmsIO.Write
acts as a producer on the queue.
This method is exclusive with withTopic(String)
. The user has to
specify a destination: queue or topic.
For instance:
.apply(JmsIO.write().withQueue("my-queue")
queue
- The JMS queue name where to send messages to.JmsIO.Read
.public JmsIO.Write withTopic(java.lang.String topic)
JmsIO.Read
acts
as a publisher on the topic.
This method is exclusive with withQueue(String)
. The user has to
specify a destination: queue or topic.
For instance:
.apply(JmsIO.write().withTopic("my-topic")
topic
- The JMS topic name.JmsIO.Read
.public JmsIO.Write withUsername(java.lang.String username)
public JmsIO.Write withPassword(java.lang.String password)
public PDone expand(PCollection<java.lang.String> input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
method.
Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
expand
in class PTransform<PCollection<java.lang.String>,PDone>