public interface MessageDispatcher extends Disposable, Connectable, MessageDispatching
MessageDispatching with
various lifecycle methods for the actual instances doing message sending.PHASE_NAMERECEIVE_NO_WAIT, RECEIVE_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. |
Connector |
getConnector()
Gets the connector for this dispatcher
|
void |
passivate()
After sending a message, the dispatcher can use this method e.g.
|
boolean |
validate()
Determines whether this dispatcher can be reused after message sending.
|
disposeconnect, disconnect, getConnectionDescription, isConnecteddispatch, sendvoid activate()
MessageDispatching methods are invoked.MessageDispatcherFactory#activate(org.mule.api.endpoint.ImmutableEndpoint, MessageDispatcher)}void passivate()
activate().MessageDispatcherFactory#passivate(org.mule.api.endpoint.ImmutableEndpoint, MessageDispatcher)}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()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.