org.mule.providers
Class PollingMessageReceiver
java.lang.Object
org.mule.providers.AbstractMessageReceiver
org.mule.providers.PollingMessageReceiver
- All Implemented Interfaces:
- Disposable, UMOMessageReceiver
- Direct Known Subclasses:
- FileMessageReceiver, MailMessageReceiver, StreamMessageReceiver, TransactedPollingMessageReceiver
- public abstract class PollingMessageReceiver
- extends AbstractMessageReceiver
PollingMessageReceiver
implements a polling message receiver.
The receiver provides a poll method that implementations should implement to
execute their custom code. Note that the receiver will not poll if the associated
connector is not started.
- Version:
- $Revision: 1.6 $
- Author:
- Ross Mason, Guillaume Nodet
Methods inherited from class org.mule.providers.AbstractMessageReceiver |
allowFilter, create, dispose, getComponent, getConnector, getEndpoint, getEndpointURI, getWorkManager, handleException, handleUnacceptedFilter, isServerSide, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, routeMessage, setComponent, setConnector, setEndpoint, setServerSide, setWorkManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_POLL_FREQUENCY
public static final long DEFAULT_POLL_FREQUENCY
- See Also:
- Constant Field Values
STARTUP_DELAY
public static final long STARTUP_DELAY
- See Also:
- Constant Field Values
PollingMessageReceiver
public PollingMessageReceiver()
PollingMessageReceiver
public PollingMessageReceiver(UMOConnector connector,
UMOComponent component,
UMOEndpoint endpoint,
java.lang.Long frequency)
throws InitialisationException
run
public void run()
release
public void release()
setFrequency
public void setFrequency(long l)
getFrequency
public long getFrequency()
doDispose
protected void doDispose()
- Description copied from class:
AbstractMessageReceiver
- Template method to dispose any resources associated with this receiver. There
is not need to dispose the connector as this is already done by the framework
- Overrides:
doDispose
in class AbstractMessageReceiver
poll
public abstract void poll()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.