org.mule.transport.vm
Class VMMessageReceiver
java.lang.Object
org.mule.transport.AbstractMessageReceiver
org.mule.transport.AbstractPollingMessageReceiver
org.mule.transport.TransactedPollingMessageReceiver
org.mule.transport.vm.VMMessageReceiver
- All Implemented Interfaces:
- Disposable, Initialisable, Lifecycle, Startable, Stoppable, Connectable, MessageReceiver
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.
Methods inherited from class org.mule.transport.AbstractMessageReceiver |
connect, 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, toString |
VMMessageReceiver
public VMMessageReceiver(Connector connector,
Service service,
InboundEndpoint endpoint)
throws CreateException
- Throws:
CreateException
schedule
protected void schedule()
throws edu.emory.mathcs.backport.java.util.concurrent.RejectedExecutionException,
NullPointerException,
IllegalArgumentException
- Description copied from class:
AbstractPollingMessageReceiver
- This method registers this receiver for periodic polling ticks with the connectors
scheduler. Subclasses can override this in case they want to handle their polling
differently.
- Overrides:
schedule
in class AbstractPollingMessageReceiver
- Throws:
edu.emory.mathcs.backport.java.util.concurrent.RejectedExecutionException
NullPointerException
IllegalArgumentException
- See Also:
ScheduledExecutorService#scheduleWithFixedDelay(Runnable, long, long, TimeUnit)}
doDispose
protected void doDispose()
- Specified by:
doDispose
in class AbstractMessageReceiver
doConnect
protected void doConnect()
throws Exception
- Specified by:
doConnect
in class AbstractMessageReceiver
- Throws:
Exception
doDisconnect
protected void doDisconnect()
throws Exception
- Specified by:
doDisconnect
in class AbstractMessageReceiver
- Throws:
Exception
onMessage
public void onMessage(MuleMessage message)
throws MuleException
- Throws:
MuleException
onCall
public Object onCall(MuleMessage message,
boolean synchronous)
throws MuleException
- Throws:
MuleException
getMessages
protected List getMessages()
throws Exception
- It's impossible to process all messages in the receive transaction
- Specified by:
getMessages
in class TransactedPollingMessageReceiver
- Throws:
Exception
getFirstMessages
protected List getFirstMessages()
throws Exception
- Throws:
Exception
getFirstMessage
protected MuleMessage getFirstMessage()
throws Exception
- Throws:
Exception
processMessage
protected void processMessage(Object msg)
throws Exception
- Specified by:
processMessage
in class TransactedPollingMessageReceiver
- Throws:
Exception
createWork
protected PollingReceiverWorker createWork()
- Overrides:
createWork
in class AbstractPollingMessageReceiver
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.