public class TcpMessageRequester extends AbstractMessageRequester
connected, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
REQUEST_NO_WAIT, REQUEST_WAIT_INDEFINITELY
Constructor and Description |
---|
TcpMessageRequester(InboundEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispose() |
protected MuleMessage |
doRequest(long timeout)
Make a specific request to the underlying transport
|
RetryContext |
validateConnection(RetryContext retryContext)
Test whether the connector is able to connect to its resource(s).
|
applyInboundTransformers, createLifecycleManager, getEndpoint, getRequesterName, getWorkManager, initialise, request
activate, connect, connectHandler, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doInitialise, doStart, doStartHandler, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, 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
dispose
getLifecycleState
public TcpMessageRequester(InboundEndpoint endpoint)
protected MuleMessage doRequest(long timeout) throws Exception
doRequest
in class AbstractMessageRequester
timeout
- the maximum time the operation should block before returning.
The call should return immediately if there is data available. If
no data becomes available before the timeout elapses, null will be
returnedException
- if the call to the underlying protocal cuases an exceptionprotected 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–2015 MuleSoft, Inc.. All rights reserved.