public class SystemTimer extends Object
Constructor and Description |
---|
SystemTimer()
构造
|
Modifier and Type | Method and Description |
---|---|
void |
addTask(TimerTask timerTask)
添加任务
|
SystemTimer |
setDelayQueueTimeout(long delayQueueTimeout)
设置执行队列取元素超时时长,单位毫秒
|
SystemTimer |
start()
启动,异步
|
void |
stop()
强制结束
|
public SystemTimer setDelayQueueTimeout(long delayQueueTimeout)
delayQueueTimeout
- 执行队列取元素超时时长,单位毫秒public SystemTimer start()
public void stop()
public void addTask(TimerTask timerTask)
timerTask
- 任务Copyright © 2024. All rights reserved.