public class JmsPublishConsume extends Object
Destination and waits for a response
either to the provided ReplyTo destination or to a temporary Destination created dynamically| Constructor and Description |
|---|
JmsPublishConsume() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<Object,JmsAttributes> |
publishConsume(JmsConfig config,
JmsConnection connection,
String destination,
MessageBuilder messageBuilder,
AckMode ackMode,
long maximumWait,
TimeUnit maximumWaitUnit,
JmsPublishParameters overrides)
Operation that allows the user to send a message to a JMS
Destination and waits for a response
either to the provided ReplyTo destination or to a temporary Destination created dynamically |
@OutputResolver(output=JmsOutputResolver.class) @Throws(value=JmsPublishConsumeErrorTypeProvider.class) public org.mule.runtime.extension.api.runtime.operation.Result<Object,JmsAttributes> publishConsume(@UseConfig JmsConfig config, @Connection JmsConnection connection, @Placement(order=0) @XmlHints(allowReferences=false) @Summary(value="The name of the Destination where the Message should be sent") String destination, @Optional @NullSafe @Placement(order=1) @Summary(value="A builder for the message that will be published") MessageBuilder messageBuilder, @Optional AckMode ackMode, @Optional(defaultValue="10000") @Summary(value="Maximum time to wait for a response before timeout") long maximumWait, @Optional(defaultValue="MILLISECONDS") @Summary(value="Time unit to be used in the maximumWaitTime configuration") TimeUnit maximumWaitUnit, @Placement(order=2) @ParameterGroup(name="Publish Configuration") JmsPublishParameters overrides) throws JmsExtensionException
Destination and waits for a response
either to the provided ReplyTo destination or to a temporary Destination created dynamicallyconfig - the current JmsProducerConfigconnection - the current JmsConnectiondestination - the name of the Destination where the Message should be sentmessageBuilder - the MessageBuilder used to create the Message to be sentackMode - the AckMode that will be configured over the Message and SessionResult with the reply Message content as Result.getOutput() and its properties
and headers as Result.getAttributes()JmsExtensionException - if an error occursCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.