public class TimerBasedWebPoller extends WebPoller
| Modifier and Type | Class and Description |
|---|---|
static class |
TimerBasedWebPoller.Factory |
DEFAULT_ERROR_COUNT_THRESHOLD, DEFAULT_INTER_ERROR_DURATION, DEFAULT_INTER_REQUEST_DURATION| Constructor and Description |
|---|
TimerBasedWebPoller(java.util.concurrent.ScheduledExecutorService timer) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isTimerActive()
Return true if the timer or the error timer is active.
|
protected void |
startErrorTimer() |
protected void |
startTimer()
Start the timer that triggers the polling.
|
protected void |
stopErrorTimer() |
protected void |
stopTimer()
Stop the timer that is triggering the polling if any exists.
|
deregister, doPoll, doStart, doStop, getErrorCountThreshold, getInterErrorDuration, getInterRequestDuration, getLogLevel, getRequestContext, getRequestFactory, inError, isActive, isInPoll, isPaused, newWebPoller, onEmptyPollResult, onError, onMessage, onStart, onStop, pause, poll, pollReturned, register, resume, setErrorCountThreshold, setInterErrorDuration, setInterRequestDuration, setListener, setLogLevel, setRequestFactory, start, stoppublic TimerBasedWebPoller(@Nonnull
java.util.concurrent.ScheduledExecutorService timer)
protected void startTimer()
WebPollerstartTimer in class WebPollerprotected boolean isTimerActive()
WebPollerisTimerActive in class WebPollerprotected void stopTimer()
WebPollerprotected void startErrorTimer()
startErrorTimer in class WebPollerprotected void stopErrorTimer()
stopErrorTimer in class WebPoller