public interface MessageRequester extends Connectable, MessageRequesting, LifecycleStateEnabled
MessageRequesting with
various lifecycle methods for the actual instances doing message sending.PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEREQUEST_NO_WAIT, REQUEST_WAIT_INDEFINITELY| Modifier and Type | Method and Description |
|---|---|
void |
activate()
This method can perform necessary state updates before any of the
MessageDispatching methods are invoked. |
MuleMessage |
createMuleMessage(Object transportMessage) |
MuleMessage |
createMuleMessage(Object transportMessage,
String encoding) |
Connector |
getConnector()
Gets the connector for this dispatcher
|
InboundEndpoint |
getEndpoint() |
void |
passivate()
After receiving a message, the dispatcher can use this method e.g.
|
boolean |
validate()
Determines whether this dispatcher can be reused after message receiving.
|
connect, disconnect, getConnectionDescription, isConnected, validateConnectioninitialisedisposerequestgetLifecycleStatevoid activate()
MessageDispatching methods are invoked.void passivate()
activate().boolean validate()
true if this dispatcher can be reused,
false otherwise (for example when
Disposable.dispose() has been called because an Exception was
raised)Connector getConnector()
InboundEndpoint getEndpoint()
MuleMessage createMuleMessage(Object transportMessage, String encoding) throws MuleException
MuleExceptionMuleMessage createMuleMessage(Object transportMessage) throws MuleException
MuleExceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.