Implementation Note
Once schedule(Runnable) is called, the task is delayed for a given time span.
If during this time, schedule(Runnable) is called again, then the original task is canceled and the new one scheduled.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final ScheduledThreadPoolExecutor | |
| private static final Logger | |
| private ScheduledFuture |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public ScheduledFuture | |
| public <T> ScheduledFuture | |
| public void |
| delay | back to summary |
|---|---|
| private int delay | |
| executor | back to summary |
|---|---|
| private final ScheduledThreadPoolExecutor executor | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| scheduledTask | back to summary |
|---|---|
| private ScheduledFuture<?> scheduledTask | |
| DelayTaskThrottler | back to summary |
|---|---|
public DelayTaskThrottler(int delay)
| |
| cancel | back to summary |
|---|---|
| public void cancel() | |
| execute | back to summary |
|---|---|
| public void execute(Runnable command) | |
| schedule | back to summary |
|---|---|
| public ScheduledFuture | |
| scheduleTask | back to summary |
|---|---|
| public <T> ScheduledFuture | |
| shutdown | back to summary |
|---|---|
| public void shutdown() Shuts everything down. Upon termination, this method returns. | |