|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.AbstractTransportMessageHandler
org.mule.transport.AbstractMessageReceiver
org.mule.transport.AbstractPollingMessageReceiver
org.mule.transport.polling.MessageProcessorPollingMessageReceiver
public class MessageProcessorPollingMessageReceiver
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.
| Field Summary | |
|---|---|
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. |
| Fields inherited from class org.mule.transport.AbstractPollingMessageReceiver |
|---|
DEFAULT_POLL_FREQUENCY, DEFAULT_POLL_TIMEUNIT, DEFAULT_STARTUP_DELAY, schedules |
| Fields inherited from class org.mule.transport.AbstractMessageReceiver |
|---|
defaultInboundTransformers, defaultResponseTransformers, flowConstruct, listener, receiverKey, replyToHandler |
| Fields inherited from class org.mule.transport.AbstractTransportMessageHandler |
|---|
connected, connector, endpoint, lifecycleManager, logger, muleMessageFactory, retryTemplate |
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Startable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Stoppable |
|---|
PHASE_NAME |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
MessageProcessorPollingMessageReceiver(Connector connector,
FlowConstruct flowConstruct,
InboundEndpoint endpoint)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.mule.transport.AbstractPollingMessageReceiver |
|---|
createWork, disableNativeScheduling, getBatchSize, getFrequency, getTimeUnit, performPoll, schedule, setFrequency, setTimeUnit, unschedule |
| Methods inherited from class org.mule.transport.AbstractTransportMessageHandler |
|---|
activate, 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, validateConnection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mule.api.transport.MessageReceiver |
|---|
createMuleMessage, createMuleMessage |
| Methods inherited from interface org.mule.api.transport.Connectable |
|---|
connect, disconnect, isConnected, validateConnection |
| Methods inherited from interface org.mule.api.lifecycle.Startable |
|---|
start |
| Methods inherited from interface org.mule.api.lifecycle.Stoppable |
|---|
stop |
| Methods inherited from interface org.mule.api.lifecycle.Disposable |
|---|
dispose |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
public MessageProcessorPollingMessageReceiver(Connector connector,
FlowConstruct flowConstruct,
InboundEndpoint endpoint)
throws CreateException
CreateException| Method Detail |
|---|
public void poll()
throws Exception
poll in class AbstractPollingMessageReceiverException
public void pollWith(MuleMessage request)
throws Exception
Exception
protected void doInitialise()
throws InitialisationException
On the Initialization phase it.
SchedulerFactory to create the scheduler
doInitialise in class AbstractTransportMessageHandlerInitialisationExceptionprotected boolean pollOnPrimaryInstanceOnly()
AbstractPollingMessageReceiver
pollOnPrimaryInstanceOnly in class AbstractPollingMessageReceiver
protected void doStart()
throws MuleException
doStart in class AbstractPollingMessageReceiverMuleException
protected void doStop()
throws MuleException
doStop in class AbstractPollingMessageReceiverMuleExceptionprotected void doDispose()
doDispose in class AbstractMessageReceiverprotected boolean isNewMessage(MuleEvent sourceEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||