public interface MuleClient
Modifier and Type | Method and Description |
---|---|
void |
dispatch(String url,
MuleMessage message)
Dispatches an event asynchronously to a endpointUri via a Mule server.
|
void |
dispatch(String url,
MuleMessage message,
OperationOptions operationOptions)
Dispatches an event asynchronously to a endpointUri via a Mule server.
|
void |
dispatch(String url,
Object payload,
Map<String,Object> messageProperties)
Deprecated.
use
dispatch(String, org.mule.api.MuleMessage) instead
Dispatches an event asynchronously to a endpointUri via a Mule server. The URL
determines where to dispatch the event to. |
MuleMessage |
process(String uri,
MessageExchangePattern mep,
MuleMessage message)
Processes a messsage with an outbound endpoint using the specified
MessageExchangePattern |
MuleMessage |
process(String uri,
MessageExchangePattern mep,
Object payload,
Map<String,Object> messageProperties)
Processes a message with an outbound endpoint using the specified
MessageExchangePattern |
MuleMessage |
request(String url,
long timeout)
Will receive an event from an endpointUri determined by the URL.
|
MuleMessage |
send(String url,
MuleMessage message)
Sends an event synchronously to a endpointUri via a Mule server and a
resulting message is returned.
|
MuleMessage |
send(String url,
MuleMessage message,
long timeout)
Deprecated.
use
send(String, org.mule.api.MuleMessage, OperationOptions) instead
Sends an event synchronously to a endpointUri via a mule server and a
resulting message is returned. |
MuleMessage |
send(String url,
MuleMessage message,
OperationOptions operationOptions)
Sends an event synchronously to a endpointUri via a Mule server and a
resulting message is returned.
|
MuleMessage |
send(String url,
Object payload,
Map<String,Object> messageProperties)
Deprecated.
use
send(String, org.mule.api.MuleMessage) instead
Sends an event synchronously to a endpointUri via a Mule server and a
resulting message is returned. |
MuleMessage |
send(String url,
Object payload,
Map<String,Object> messageProperties,
long timeout)
Deprecated.
use
send(String, org.mule.api.MuleMessage, 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,Object> messageProperties) throws MuleException
dispatch(String, org.mule.api.MuleMessage)
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.MuleException
void dispatch(String url, MuleMessage message) throws MuleException
url
- the Mule URL used to determine the destination and transport of the
messagemessage
- the message to sendMuleException
void dispatch(String url, MuleMessage message, OperationOptions operationOptions) throws MuleException
url
- the Mule URL used to determine the destination and transport of the
messagemessage
- the message to sendoperationOptions
- the options to configure the operationMuleException
@Deprecated MuleMessage send(String url, Object payload, Map<String,Object> messageProperties) throws MuleException
send(String, org.mule.api.MuleMessage)
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
.MuleException
MuleMessage send(String url, MuleMessage message) throws 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
.MuleException
MuleMessage send(String url, MuleMessage message, OperationOptions operationOptions) throws 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
.MuleException
@Deprecated MuleMessage send(String url, Object payload, Map<String,Object> messageProperties, long timeout) throws MuleException
send(String, org.mule.api.MuleMessage, 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
.MuleException
@Deprecated MuleMessage send(String url, MuleMessage message, long timeout) throws MuleException
send(String, org.mule.api.MuleMessage, 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
.MuleException
MuleMessage request(String url, long timeout) throws 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 receivedMuleException
MuleMessage process(String uri, MessageExchangePattern mep, Object payload, Map<String,Object> messageProperties) throws MuleException
MessageExchangePattern
uri
- mep
- the MessageExchangePattern
that should be usedpayload
- the message payloadmessageProperties
- and message properties that should be used (optional,
use null otherwise)MessageExchangePattern
defines a response else null.MuleException
MuleMessage process(String uri, MessageExchangePattern mep, MuleMessage message) throws MuleException
MessageExchangePattern
uri
- mep
- the MessageExchangePattern
that should be usedmessage
- the message to be processedMessageExchangePattern
defines a response else null.MuleException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.