public class LocalSocketTcpMessageDispatcher extends TcpMessageDispatcher
LocalSocketTcpMessageDispatcher
will send transformed Mule events
over TCP. It contains a local socket that reuses on each message dispatchdefaultOutboundTransformers, defaultResponseTransformers
connected, defaultMessageInfoMapping, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate
RECEIVE_NO_WAIT, RECEIVE_WAIT_INDEFINITELY
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
LocalSocketTcpMessageDispatcher(OutboundEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatchToSocket(MuleEvent event) |
protected void |
doDispatch(MuleEvent event) |
protected MuleMessage |
doSend(MuleEvent event) |
TcpConnector |
getConnector()
Gets the connector for this dispatcher
|
RetryContext |
validateConnection(RetryContext retryContext)
Test whether the connector is able to connect to its resource(s).
|
doConnect, doDisconnect, doDispose, receiveFromSocket
applyOutboundTransformers, applyResponseTransformers, createLifecycleManager, doSendNonBlocking, getDispatcherName, getEndpoint, getWorkManager, isSupportsNonBlocking, process, returnResponse, returnResponse
activate, connect, connectHandler, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doInitialise, doStart, doStartHandler, doStop, getConnectEventId, getConnectionDescription, getLifecycleState, initialise, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopped, isStopping, passivate, setEndpoint, start, stop, toString, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activate, createMuleMessage, createMuleMessage, passivate, validate
connect, disconnect, getConnectionDescription, isConnected
initialise
dispose
getLifecycleState
public LocalSocketTcpMessageDispatcher(OutboundEndpoint endpoint)
public TcpConnector getConnector()
MessageDispatcher
getConnector
in interface MessageDispatcher
getConnector
in class AbstractTransportMessageHandler
protected void doDispatch(MuleEvent event) throws Exception
doDispatch
in class TcpMessageDispatcher
Exception
protected MuleMessage doSend(MuleEvent event) throws Exception
doSend
in class TcpMessageDispatcher
Exception
protected void dispatchToSocket(MuleEvent event) throws Exception
Exception
public RetryContext validateConnection(RetryContext retryContext)
Connectable
RetryContext.setOk()
when no problems found (or no validation required).
RetryContext.setFailed(Throwable)
with a root cause for a connection failure.
RetryContext.isOk()
. The failure, if any, will be
provided via the RetryContext.getLastFailure()
.validateConnection
in interface Connectable
validateConnection
in class TcpMessageDispatcher
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.