public interface MuleClient
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(String url,
org.mule.runtime.api.message.Message message)
Dispatches an event asynchronously to a endpointUri via a Mule server.
|
void |
dispatch(String url,
org.mule.runtime.api.message.Message message,
OperationOptions operationOptions)
Dispatches an event asynchronously to a endpointUri via a Mule server.
|
void |
dispatch(String url,
Object payload,
Map<String,Serializable> messageProperties)
Deprecated.
use
dispatch(String, Message) instead
Dispatches an event asynchronously to a endpointUri via a Mule server. The URL determines where to dispatch the
event to. |
Either<org.mule.runtime.api.message.Error,Optional<org.mule.runtime.api.message.Message>> |
request(String url,
long timeout)
Will receive an event from an endpointUri determined by the URL.
|
Either<org.mule.runtime.api.message.Error,org.mule.runtime.api.message.Message> |
send(String url,
org.mule.runtime.api.message.Message message)
Sends an event synchronously to a endpointUri via a Mule server and a resulting message is returned.
|
Either<org.mule.runtime.api.message.Error,org.mule.runtime.api.message.Message> |
send(String url,
org.mule.runtime.api.message.Message message,
long timeout)
Deprecated.
use
send(String, Message, OperationOptions) instead
Sends an event synchronously to a endpointUri via a mule server and a resulting message is returned. |
Either<org.mule.runtime.api.message.Error,org.mule.runtime.api.message.Message> |
send(String url,
org.mule.runtime.api.message.Message message,
OperationOptions operationOptions)
Sends an event synchronously to a endpointUri via a Mule server and a resulting message is returned.
|
Either<org.mule.runtime.api.message.Error,org.mule.runtime.api.message.Message> |
send(String url,
Object payload,
Map<String,Serializable> messageProperties)
Deprecated.
use
send(String, Message) instead
Sends an event synchronously to a endpointUri via a Mule server and a resulting message is returned. |
Either<org.mule.runtime.api.message.Error,org.mule.runtime.api.message.Message> |
send(String url,
Object payload,
Map<String,Serializable> messageProperties,
long timeout)
Deprecated.
use
send(String, Message, OperationOptions)
Sends an event synchronously to a endpointUri via a mule server and a resulting message is returned. |
@Deprecated void dispatch(String url, Object payload, Map<String,Serializable> messageProperties) throws org.mule.runtime.api.exception.MuleException
dispatch(String, Message) instead
Dispatches an event asynchronously to a endpointUri via a Mule server. The URL determines where to dispatch the
event to.url - the Mule URL used to determine the destination and transport of the messagepayload - the object that is the payload of the eventmessageProperties - any properties to be associated with the payload. In the case of JMS you could set the JMSReplyTo
property in these properties.org.mule.api.MuleExceptionorg.mule.runtime.api.exception.MuleExceptionvoid dispatch(String url, org.mule.runtime.api.message.Message message) throws org.mule.runtime.api.exception.MuleException
url - the Mule URL used to determine the destination and transport of the messagemessage - the message to sendorg.mule.api.MuleExceptionorg.mule.runtime.api.exception.MuleExceptionvoid dispatch(String url, org.mule.runtime.api.message.Message message, OperationOptions operationOptions) throws org.mule.runtime.api.exception.MuleException
url - the Mule URL used to determine the destination and transport of the messagemessage - the message to sendoperationOptions - the options to configure the operationorg.mule.api.MuleExceptionorg.mule.runtime.api.exception.MuleException@Deprecated Either<org.mule.runtime.api.message.Error,org.mule.runtime.api.message.Message> send(String url, Object payload, Map<String,Serializable> messageProperties) throws org.mule.runtime.api.exception.MuleException
send(String, Message) instead
Sends an event synchronously to a endpointUri via a Mule server and a resulting message is returned.url - the Mule URL used to determine the destination and transport of the messagepayload - the object that is the payload of the eventmessageProperties - any properties to be associated with the payload. In the case of Jms you could set the JMSReplyTo
property in these properties.null if the the components invoked explicitly sets a return as
null.org.mule.api.MuleExceptionorg.mule.runtime.api.exception.MuleExceptionEither<org.mule.runtime.api.message.Error,org.mule.runtime.api.message.Message> send(String url, org.mule.runtime.api.message.Message message) throws org.mule.runtime.api.exception.MuleException
url - the Mule URL used to determine the destination and transport of the messagemessage - the Message for the eventnull if the the components invoked explicitly sets a return as
null.org.mule.api.MuleExceptionorg.mule.runtime.api.exception.MuleExceptionEither<org.mule.runtime.api.message.Error,org.mule.runtime.api.message.Message> send(String url, org.mule.runtime.api.message.Message message, OperationOptions operationOptions) throws org.mule.runtime.api.exception.MuleException
url - the Mule URL used to determine the destination and transport of the messagemessage - the Message for the eventoperationOptions - the options to configure the operationnull if the the components invoked explicitly sets a return as
null.org.mule.api.MuleExceptionorg.mule.runtime.api.exception.MuleException@Deprecated Either<org.mule.runtime.api.message.Error,org.mule.runtime.api.message.Message> send(String url, Object payload, Map<String,Serializable> messageProperties, long timeout) throws org.mule.runtime.api.exception.MuleException
send(String, Message, OperationOptions)
Sends an event synchronously to a endpointUri via a mule server and a resulting message is returned.url - the Mule URL used to determine the destination and transport of the messagepayload - the object that is the payload of the eventmessageProperties - any properties to be associated with the payload. In the case of Jms you could set the JMSReplyTo
property in these properties.timeout - The time in milliseconds the the call should block waiting for a responsenull if the the components invoked explicitly sets a return as
null.org.mule.api.MuleExceptionorg.mule.runtime.api.exception.MuleException@Deprecated Either<org.mule.runtime.api.message.Error,org.mule.runtime.api.message.Message> send(String url, org.mule.runtime.api.message.Message message, long timeout) throws org.mule.runtime.api.exception.MuleException
send(String, Message, OperationOptions) instead
Sends an event synchronously to a endpointUri via a mule server and a resulting message is returned.url - the Mule URL used to determine the destination and transport of the messagemessage - The message to sendtimeout - The time in milliseconds the the call should block waiting for a responsenull if the the components invoked explicitly sets a return as
null.org.mule.api.MuleExceptionorg.mule.runtime.api.exception.MuleExceptionEither<org.mule.runtime.api.message.Error,Optional<org.mule.runtime.api.message.Message>> request(String url, long timeout) throws org.mule.runtime.api.exception.MuleException
url - the Mule URL used to determine the destination and transport of the messagetimeout - how long to block waiting to receive the event, if set to 0 the receive will not wait at all and if set to -1
the receive will wait forevernull if no message was receivedorg.mule.api.MuleExceptionorg.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.