@Deprecated public class RemoteDispatcher extends Object implements Disposable
RemoteDispatcher
is used to make and receive requests to a remote
Mule instance. It is used to proxy requests to Mule using the Server URL as the
transport channel.
Deprecated as of 3.6.0Modifier and Type | Field and Description |
---|---|
protected static Log |
logger
Deprecated.
logger used by this class
|
PHASE_NAME
Modifier | Constructor and Description |
---|---|
protected |
RemoteDispatcher(String endpoint,
Credentials credentials,
MuleContext muleContext)
Deprecated.
|
protected |
RemoteDispatcher(String endpoint,
MuleContext muleContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
FutureMessageResult |
asyncReceiveRemote(String endpoint,
int timeout)
Deprecated.
|
protected MuleMessage |
dispatchAction(RemoteDispatcherNotification action,
boolean synchronous,
int timeout)
Deprecated.
|
void |
dispatchRemote(String endpoint,
Object payload,
Map messageProperties)
Deprecated.
|
void |
dispatchToRemoteComponent(String component,
Object payload,
Map messageProperties)
Deprecated.
Dispatcher an event asynchronously to a components on a remote Mule instance.
|
void |
dispose()
Deprecated.
A lifecycle method where implementor should free up any resources.
|
protected MuleMessage |
doToRemote(String endpoint,
Object payload,
Map messageProperties,
boolean synchronous,
int timeout)
Deprecated.
|
protected MuleMessage |
doToRemoteComponent(String component,
Object payload,
Map messageProperties,
boolean synchronous)
Deprecated.
|
WireFormat |
getWireFormat()
Deprecated.
|
MuleMessage |
receiveRemote(String endpoint,
int timeout)
Deprecated.
|
protected WireFormat |
requestWireFormat()
Deprecated.
|
FutureMessageResult |
sendAsyncRemote(String endpoint,
Object payload,
Map messageProperties)
Deprecated.
|
FutureMessageResult |
sendAsyncToRemoteComponent(String component,
String transformers,
Object payload,
Map messageProperties)
Deprecated.
sends an event to a components on a remote Mule instance, while making the
result of the event trigger available as a Future result that can be accessed
later by client code.
|
MuleMessage |
sendRemote(String endpoint,
Object payload,
Map messageProperties)
Deprecated.
|
MuleMessage |
sendRemote(String endpoint,
Object payload,
Map messageProperties,
int timeout)
Deprecated.
|
MuleMessage |
sendToRemoteComponent(String component,
Object payload,
Map messageProperties)
Deprecated.
sends an event synchronously to a components on a remote Mule instance.
|
protected void |
setCredentials(MuleMessage message)
Deprecated.
|
protected void |
setExecutor(Executor e)
Deprecated.
|
void |
setWireFormat(WireFormat wireFormat)
Deprecated.
|
protected void |
updateContext(MuleMessage message,
ImmutableEndpoint endpoint,
boolean synchronous)
Deprecated.
|
protected static final Log logger
protected RemoteDispatcher(String endpoint, Credentials credentials, MuleContext muleContext) throws MuleException
MuleException
protected RemoteDispatcher(String endpoint, MuleContext muleContext) throws MuleException
MuleException
protected WireFormat requestWireFormat() throws MuleException
MuleException
protected void setExecutor(Executor e)
public void dispatchToRemoteComponent(String component, Object payload, Map messageProperties) throws MuleException
component
- the name of the Mule components to dispatch topayload
- the object that is the payload of the eventmessageProperties
- any properties to be associated with the payload. as
nullMuleException
- if the dispatch fails or the components or
transfromers cannot be foundpublic MuleMessage sendToRemoteComponent(String component, Object payload, Map messageProperties) throws MuleException
component
- the name of the Mule components to send topayload
- the object that is the payload of the eventmessageProperties
- any properties to be associated with the payload. as
nullMuleException
- if the dispatch fails or the components or
transfromers cannot be foundpublic FutureMessageResult sendAsyncToRemoteComponent(String component, String transformers, Object payload, Map messageProperties) throws MuleException
component
- the name of the Mule components to send totransformers
- a comma separated list of transformers to apply to the
result messagepayload
- the object that is the payload of the eventmessageProperties
- any properties to be associated with the payload. as
nullMuleException
- if the dispatch fails or the components or
transfromers cannot be foundpublic MuleMessage sendRemote(String endpoint, Object payload, Map messageProperties, int timeout) throws MuleException
MuleException
public MuleMessage sendRemote(String endpoint, Object payload, Map messageProperties) throws MuleException
MuleException
public void dispatchRemote(String endpoint, Object payload, Map messageProperties) throws MuleException
MuleException
public FutureMessageResult sendAsyncRemote(String endpoint, Object payload, Map messageProperties) throws MuleException
MuleException
public MuleMessage receiveRemote(String endpoint, int timeout) throws MuleException
MuleException
public FutureMessageResult asyncReceiveRemote(String endpoint, int timeout) throws MuleException
MuleException
protected MuleMessage doToRemoteComponent(String component, Object payload, Map messageProperties, boolean synchronous) throws MuleException
MuleException
protected MuleMessage doToRemote(String endpoint, Object payload, Map messageProperties, boolean synchronous, int timeout) throws MuleException
MuleException
protected MuleMessage dispatchAction(RemoteDispatcherNotification action, boolean synchronous, int timeout) throws MuleException
MuleException
public void dispose()
Disposable
dispose
in interface Disposable
protected void setCredentials(MuleMessage message)
public WireFormat getWireFormat()
public void setWireFormat(WireFormat wireFormat)
protected void updateContext(MuleMessage message, ImmutableEndpoint endpoint, boolean synchronous) throws MuleException
MuleException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.