public class VMMessageReceiver extends TransactedPollingMessageReceiver
VMMessageReceiver is a listener for events from a Mule service which then simply passes
the events on to the target service.| Modifier and Type | Class and Description |
|---|---|
protected static class |
VMMessageReceiver.VMReceiverWorker |
TransactedPollingMessageReceiver.MessageProcessorWorkerDEFAULT_POLL_FREQUENCY, DEFAULT_POLL_TIMEUNIT, DEFAULT_STARTUP_DELAY, schedulesconnected, connecting, connectionStrategy, disposing, endpoint, logger, receiverKey, responseEndpoint, service, stoppedPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
VMMessageReceiver(Connector connector,
Service service,
InboundEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected PollingReceiverWorker |
createWork() |
protected void |
doConnect() |
protected void |
doDisconnect() |
protected void |
doDispose() |
protected MuleMessage |
getFirstMessage() |
protected List |
getFirstMessages() |
protected List |
getMessages()
It's impossible to process all messages in the receive transaction
|
Object |
onCall(MuleMessage message,
boolean synchronous) |
void |
onMessage(MuleMessage message) |
protected void |
processMessage(Object msg) |
protected void |
schedule()
This method registers this receiver for periodic polling ticks with the connectors
scheduler.
|
doStart, isReceiveMessagesInTransaction, isUseMultipleTransactedReceivers, poll, setReceiveMessagesInTransaction, setUseMultipleTransactedReceiversdoStop, getFrequency, getTimeUnit, setFrequency, setTimeUnit, unscheduleconnect, disconnect, dispose, doInitialise, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, getEndpointURI, getListener, getReceiverKey, getService, getWorkManager, handleException, handleUnacceptedFilter, initialise, isConnected, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setConnector, setEndpoint, setExceptionDetails, setListener, setReceiverKey, setService, setWorkManager, start, stop, toStringpublic VMMessageReceiver(Connector connector, Service service, InboundEndpoint endpoint) throws CreateException
CreateExceptionprotected void schedule()
throws edu.emory.mathcs.backport.java.util.concurrent.RejectedExecutionException,
NullPointerException,
IllegalArgumentException
AbstractPollingMessageReceiverschedule in class AbstractPollingMessageReceiveredu.emory.mathcs.backport.java.util.concurrent.RejectedExecutionExceptionNullPointerExceptionIllegalArgumentExceptionScheduledExecutorService#scheduleWithFixedDelay(Runnable, long, long, TimeUnit)}protected void doDispose()
doDispose in class AbstractMessageReceiverprotected void doConnect()
throws Exception
doConnect in class AbstractMessageReceiverExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class AbstractMessageReceiverExceptionpublic void onMessage(MuleMessage message) throws MuleException
MuleExceptionpublic Object onCall(MuleMessage message, boolean synchronous) throws MuleException
MuleExceptionprotected List getMessages() throws Exception
getMessages in class TransactedPollingMessageReceiverExceptionprotected MuleMessage getFirstMessage() throws Exception
Exceptionprotected void processMessage(Object msg) throws Exception
processMessage in class TransactedPollingMessageReceiverExceptionprotected PollingReceiverWorker createWork()
createWork in class AbstractPollingMessageReceiverCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.