public final class EventloopTaskScheduler extends Object implements EventloopService, Initializable<EventloopTaskScheduler>, EventloopJmxMBeanEx
| Modifier and Type | Class and Description |
|---|---|
static interface |
EventloopTaskScheduler.Schedule |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, initializegetSmoothingWindow, resetStats, setSmoothingWindowpublic static EventloopTaskScheduler create(Eventloop eventloop, AsyncCallable<?> task)
public EventloopTaskScheduler withInitialDelay(Duration initialDelay)
public EventloopTaskScheduler withSchedule(EventloopTaskScheduler.Schedule schedule)
public EventloopTaskScheduler withPeriod(Duration period)
public EventloopTaskScheduler withInterval(Duration interval)
public EventloopTaskScheduler withRetryPolicy(RetryPolicy retryPolicy)
public EventloopTaskScheduler withAbortOnError(boolean abortOnError)
public EventloopTaskScheduler withStatsHistogramLevels(int[] levels)
public Eventloop getEventloop()
getEventloop in interface EventloopServicegetEventloop in interface EventloopJmxMBeanpublic Stage<Void> start()
EventloopServicestart in interface EventloopServicepublic Stage<Void> stop()
EventloopServicestop in interface EventloopServicepublic void setSchedule(EventloopTaskScheduler.Schedule schedule)
public void setRetryPolicy(RetryPolicy retryPolicy)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public StageStats getStats()
public Throwable getLastException()
public long getInitialDelay()
public void setPeriod(Duration period)
public void setInterval(Duration interval)
public void startNow()
Copyright © 2019. All rights reserved.