public class TcpMessageDispatcher extends AbstractMessageDispatcher
defaultOutboundTransformers, 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 |
---|
TcpMessageDispatcher(OutboundEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispatch(MuleEvent event) |
protected void |
doDispose() |
protected MuleMessage |
doSend(MuleEvent event) |
protected static Object |
receiveFromSocket(Socket socket,
int timeout,
ImmutableEndpoint endpoint) |
RetryContext |
validateConnection(RetryContext retryContext)
Test whether the connector is able to connect to its resource(s).
|
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, getConnector, 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, getConnector, passivate, validate
connect, disconnect, getConnectionDescription, isConnected
initialise
dispose
getLifecycleState
public TcpMessageDispatcher(OutboundEndpoint endpoint)
protected void doDispatch(MuleEvent event) throws Exception
doDispatch
in class AbstractMessageDispatcher
Exception
protected MuleMessage doSend(MuleEvent event) throws Exception
doSend
in class AbstractMessageDispatcher
Exception
protected static Object receiveFromSocket(Socket socket, int timeout, ImmutableEndpoint endpoint) throws IOException
IOException
protected void doDispose()
doDispose
in class AbstractTransportMessageHandler
protected void doConnect() throws Exception
doConnect
in class AbstractTransportMessageHandler
Exception
protected void doDisconnect() throws Exception
doDisconnect
in class AbstractTransportMessageHandler
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 AbstractTransportMessageHandler
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.