public class RandomIntervalPoller extends FixedIntervalPoller
This implementation is of marginal use, and is best used to generate messages at pseudo-random intervals.
In the adapter configuration file this class is aliased as random-interval-poller which is the preferred alternative to the fully qualified classname when building your configuration.
PollerImp.Callback
executor, pollerTask
Constructor and Description |
---|
RandomIntervalPoller() |
RandomIntervalPoller(TimeInterval interval) |
Modifier and Type | Method and Description |
---|---|
protected void |
scheduleTask() |
getPollInterval, setPollInterval
close, getShutdownWaitTime, init, setShutdownWaitTime, start, stop
attemptLock, processMessages, registerConsumer, releaseLock, retrieveConsumer, withPollerCallback
public RandomIntervalPoller()
public RandomIntervalPoller(TimeInterval interval)
protected void scheduleTask()
scheduleTask
in class FixedIntervalPoller