public class Scheduler extends Object
| Modifier and Type | Field and Description |
|---|---|
static Scheduler |
BACKGROUND_SCHEDULER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isShutdown() |
boolean |
isSubmitted(Runnable refreshable) |
boolean |
reinit()
Re-start the scheduler following
shutdown(). |
void |
shutdown() |
void |
submit(Runnable toSchedule) |
void |
submit(Runnable toSchedule,
TemporalAmount delayInBetween) |
public static final Scheduler BACKGROUND_SCHEDULER
public void submit(Runnable toSchedule)
public void submit(Runnable toSchedule, TemporalAmount delayInBetween)
public boolean isSubmitted(Runnable refreshable)
public void shutdown()
public boolean isShutdown()
public boolean reinit()
shutdown(). This is only to help with testing.Copyright © 2017. All rights reserved.