public interface LocalMuleClient extends MuleClient
MuleClient adding methods that allow the use of an endpoint
instance.| Modifier and Type | Method and Description |
|---|---|
MuleMessage |
process(OutboundEndpoint endpoint,
MuleMessage message)
Sends an event synchronously to a endpointUri via a Mule server and a
resulting message is returned.
|
MuleMessage |
process(OutboundEndpoint endpoint,
Object payload,
Map<String,Object> messageProperties)
Sends an event synchronously to a endpointUri via a Mule server and a
resulting message is returned.
|
MuleMessage |
request(InboundEndpoint endpoint,
long timeout)
Will receive an event from an endpointUri determined by the URL.
|
MuleMessage process(OutboundEndpoint endpoint, Object payload, Map<String,Object> messageProperties) throws MuleException
endpoint - payload - 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.MuleExceptionMuleMessage process(OutboundEndpoint endpoint, MuleMessage message) throws MuleException
endpoint - message - the Message for the eventnull if the the
components invoked explicitly sets a return as null.MuleExceptionMuleMessage request(InboundEndpoint endpoint, long timeout) throws MuleException
endpoint - 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 receivedMuleExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.