| Modifier and Type | Field and Description |
|---|---|
static ScheduledExecutorService |
SCHEDULED_EXECUTOR_SERVICE |
| Constructor and Description |
|---|
QuickTimer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cancelQuickTask() |
protected long |
getDelay()
获取定时任务的延迟启动时间
|
protected abstract long |
getPeriod()
获取定时任务的执行频率
|
static ScheduledFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period) |
public static final ScheduledExecutorService SCHEDULED_EXECUTOR_SERVICE
public static void cancelQuickTask()
public static ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period)
protected long getDelay()
protected abstract long getPeriod()
Copyright © 2021. All rights reserved.