public class MessageProcessorPollingMessageReceiver extends AbstractPollingMessageReceiver
Polling MessageSource.
The MessageProcessorPollingMessageReceiver is responsible of creating a Scheduler
at the initialization phase. This Scheduler can be stopped/started and executed by using the MuleRegistry
interface, this way users can manipulate poll from outside mule server.
| Modifier and Type | Field and Description |
|---|---|
protected MessageProcessorPollingOverride |
override
The
MessageProcessorPollingOverride that affects the routing of the MuleEvent |
static String |
POLL_OVERRIDE_PROPERTY_NAME
The
InboundEndpoint property for poll that contains the MessageProcessorPollingOverride |
static String |
POLLING_TRANSPORT
The Polling transport name identifier.
|
static String |
SCHEDULER_FACTORY_PROPERTY_NAME
The
InboundEndpoint property for poll that contains the SchedulerFactory |
static String |
SOURCE_MESSAGE_PROCESSOR_PROPERTY_NAME
The
InboundEndpoint property for poll that contains the poll message source. |
protected MessageProcessor |
sourceMessageProcessor
The poll message source, configured inside the poll element in the xml configuration.
|
DEFAULT_POLL_FREQUENCY, DEFAULT_POLL_TIMEUNIT, DEFAULT_STARTUP_DELAY, schedulesdefaultInboundTransformers, defaultResponseTransformers, flowConstruct, listener, receiverKey, replyToHandlerconnected, connector, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplatePHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
MessageProcessorPollingMessageReceiver(Connector connector,
FlowConstruct flowConstruct,
InboundEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDispose() |
protected void |
doInitialise()
On the Initialization phase it.
|
protected void |
doStart() |
protected void |
doStop() |
protected boolean |
isNewMessage(MuleEvent sourceEvent) |
void |
poll() |
protected boolean |
pollOnPrimaryInstanceOnly()
If this returns true for a transport, polling for that transport takes place only on the primary instance.
|
void |
pollWith(MuleMessage request) |
createWork, disableNativeScheduling, getBatchSize, getFrequency, getTimeUnit, performPoll, schedule, setFrequency, setTimeUnit, unscheduleapplyInboundTransformers, applyResponseTransformers, connectHandler, createExecutionTemplate, createLifecycleManager, createMuleEvent, doStartHandler, getConnectEventId, getConnectionDescription, getEndpoint, getEndpointURI, getFlowConstruct, getReceiverKey, getReplyToHandler, getWorkManager, handleUnacceptedFilter, initialise, processMessage, propagateRootMessageIdProperty, routeEvent, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setEndpoint, setListener, setReceiverKey, shouldConsumeInEveryNode, toString, warnIfMuleClientSendUsedactivate, connect, createMuleMessage, createMuleMessage, createMuleMessage, createMuleMessageFactory, createNullMuleMessage, disconnect, dispose, disposeAndLogException, doConnect, doDisconnect, getConnectEventId, getConnector, getLifecycleState, initializeMessageFactory, initializeRetryPolicy, isConnected, isDoThreading, isStarted, isStarting, isStopped, isStopping, passivate, setEndpoint, start, stop, validate, validateConnectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateMuleMessage, createMuleMessageconnect, disconnect, isConnected, validateConnectiondisposepublic static final String SOURCE_MESSAGE_PROCESSOR_PROPERTY_NAME
The InboundEndpoint property for poll that contains the poll message source. Which is configured inside
the poll element in the XML configuration
public static final String POLL_OVERRIDE_PROPERTY_NAME
The InboundEndpoint property for poll that contains the MessageProcessorPollingOverride
public static final String SCHEDULER_FACTORY_PROPERTY_NAME
The InboundEndpoint property for poll that contains the SchedulerFactory
public static final String POLLING_TRANSPORT
The Polling transport name identifier. Used to create the scheduler name
protected MessageProcessor sourceMessageProcessor
The poll message source, configured inside the poll element in the xml configuration. i.e.:
{@code
protected MessageProcessorPollingOverride override
The MessageProcessorPollingOverride that affects the routing of the MuleEvent
public MessageProcessorPollingMessageReceiver(Connector connector, FlowConstruct flowConstruct, InboundEndpoint endpoint) throws CreateException
CreateExceptionpublic void poll()
throws Exception
poll in class AbstractPollingMessageReceiverExceptionpublic void pollWith(MuleMessage request) throws Exception
Exceptionprotected void doInitialise()
throws InitialisationException
On the Initialization phase it.
SchedulerFactory to create the schedulerdoInitialise in class AbstractTransportMessageHandlerInitialisationExceptionprotected boolean pollOnPrimaryInstanceOnly()
AbstractPollingMessageReceiverpollOnPrimaryInstanceOnly in class AbstractPollingMessageReceiverprotected void doStart()
throws MuleException
doStart in class AbstractPollingMessageReceiverMuleExceptionprotected void doStop()
throws MuleException
doStop in class AbstractPollingMessageReceiverMuleExceptionprotected void doDispose()
doDispose in class AbstractMessageReceiverprotected boolean isNewMessage(MuleEvent sourceEvent)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.