public abstract class AbstractMessageDispatcher extends AbstractConnectable implements MessageDispatcher
connected, connecting, connectionStrategy, connector, disposed, endpoint, logger
PHASE_NAME
RECEIVE_NO_WAIT, RECEIVE_WAIT_INDEFINITELY
Constructor and Description |
---|
AbstractMessageDispatcher(OutboundEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
void |
dispatch(MuleEvent event)
Dispatches an event from the endpoint to the external system
|
protected abstract void |
doDispatch(MuleEvent event) |
protected abstract MuleMessage |
doSend(MuleEvent event) |
protected boolean |
isTransactionRollback()
Checks to see if the current transaction has been rolled back
|
MuleMessage |
send(MuleEvent event)
Sends an event from the endpoint to the external system
|
protected boolean |
useRemoteSync(MuleEvent event)
RemoteSync causes the message dispatch to wait for a response to an event on a
response channel after it sends the event.
|
activate, connect, disconnect, dispose, disposeAndLogException, doConnect, doDisconnect, doDispose, exceptionThrown, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, isConnected, isDoThreading, passivate, reconnect, toString, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activate, getConnector, passivate, validate
dispose
connect, disconnect, getConnectionDescription, isConnected
public AbstractMessageDispatcher(OutboundEndpoint endpoint)
public final void dispatch(MuleEvent event) throws DispatchException
MessageDispatching
dispatch
in interface MessageDispatching
event
- The event to dispatchDispatchException
- if the event fails to be dispatchedpublic final MuleMessage send(MuleEvent event) throws DispatchException
MessageDispatching
send
in interface MessageDispatching
event
- The event to sendDispatchException
- if the event fails to be dispatchedprotected boolean useRemoteSync(MuleEvent event)
event
- the current eventprotected boolean isTransactionRollback()
protected abstract MuleMessage doSend(MuleEvent event) throws Exception
Exception
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.