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.Callback
executor, 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, stop
attemptLock, processMessages, registerConsumer, releaseLock, retrieveConsumer, retrieveConsumer, withPollerCallback
public FixedIntervalPoller()
public FixedIntervalPoller(TimeInterval interval)
protected void scheduleTask()
scheduleTask
in class ScheduledTaskPoller
public TimeInterval getPollInterval()
public void setPollInterval(TimeInterval pollInterval)
pollInterval
- the interval; default is 20 seconds.