public abstract class AbstractMessageRequester extends AbstractTransportMessageHandler implements MessageRequester
connected, connector, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
REQUEST_NO_WAIT, REQUEST_WAIT_INDEFINITELY
Constructor and Description |
---|
AbstractMessageRequester(InboundEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
applyInboundTransformers(MuleMessage message) |
protected ConnectableLifecycleManager |
createLifecycleManager() |
protected abstract MuleMessage |
doRequest(long timeout)
Make a specific request to the underlying transport
|
InboundEndpoint |
getEndpoint() |
protected String |
getRequesterName() |
protected WorkManager |
getWorkManager() |
void |
initialise()
Method used to perform any initialisation work.
|
MuleMessage |
request(long timeout)
Make a specific request to the underlying transport
|
activate, connect, connectHandler, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doConnect, doDisconnect, doDispose, doInitialise, doStart, doStartHandler, doStop, getConnectEventId, getConnectionDescription, getConnector, getLifecycleState, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopped, isStopping, passivate, setEndpoint, start, stop, toString, validate, validateConnection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activate, createMuleMessage, createMuleMessage, getConnector, passivate, validate
connect, disconnect, getConnectionDescription, isConnected, validateConnection
dispose
getLifecycleState
public AbstractMessageRequester(InboundEndpoint endpoint)
protected ConnectableLifecycleManager createLifecycleManager()
createLifecycleManager
in class AbstractTransportMessageHandler
public final void initialise() throws InitialisationException
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
initialise
in class AbstractTransportMessageHandler
InitialisationException
- if a fatal error occurs
causing the Mule instance to shutdownRecoverableException
- if an error occurs that
can be recovered fromprotected String getRequesterName()
public final MuleMessage request(long timeout) throws Exception
request
in interface MessageRequesting
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 protocol causes an exceptionprotected void applyInboundTransformers(MuleMessage message) throws MuleException
MuleException
protected WorkManager getWorkManager() throws MuleException
getWorkManager
in class AbstractTransportMessageHandler
MuleException
public InboundEndpoint getEndpoint()
getEndpoint
in interface MessageRequester
getEndpoint
in class AbstractTransportMessageHandler
protected abstract MuleMessage doRequest(long timeout) throws Exception
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 exceptionCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.