public abstract class AbstractMessageRequester extends AbstractTransportMessageHandler implements MessageRequester
connected, connector, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplatePHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAMEREQUEST_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, validateConnectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactivate, createMuleMessage, createMuleMessage, getConnector, passivate, validateconnect, disconnect, getConnectionDescription, isConnected, validateConnectiondisposegetLifecycleStatepublic AbstractMessageRequester(InboundEndpoint endpoint)
protected ConnectableLifecycleManager createLifecycleManager()
createLifecycleManager in class AbstractTransportMessageHandlerpublic 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 Initialisableinitialise in class AbstractTransportMessageHandlerInitialisationException - 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 MessageRequestingtimeout - 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
MuleExceptionprotected WorkManager getWorkManager() throws MuleException
getWorkManager in class AbstractTransportMessageHandlerMuleExceptionpublic InboundEndpoint getEndpoint()
getEndpoint in interface MessageRequestergetEndpoint in class AbstractTransportMessageHandlerprotected 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.