public class FixedIntervalPoller extends ScheduledTaskPoller
Implementation of Poller which polls at a configurable fixed interval.
In the adapter configuration file this class is aliased as fixed-interval-poller which is the preferred alternative to the fully qualified classname when building your configuration.
PollerImp.Callbackexecutor, pollerTask| Constructor and Description |
|---|
FixedIntervalPoller() |
FixedIntervalPoller(TimeInterval interval) |
| Modifier and Type | Method and Description |
|---|---|
TimeInterval |
getPollInterval() |
protected void |
scheduleTask() |
void |
setPollInterval(TimeInterval pollInterval)
Set the poll interval.
|
close, getShutdownWaitTime, init, setShutdownWaitTime, start, stopattemptLock, processMessages, registerConsumer, releaseLock, retrieveConsumer, withPollerCallbackpublic FixedIntervalPoller()
public FixedIntervalPoller(TimeInterval interval)
protected void scheduleTask()
scheduleTask in class ScheduledTaskPollerpublic TimeInterval getPollInterval()
public void setPollInterval(TimeInterval pollInterval)
pollInterval - the interval; default is 20 seconds.