Uses of Class
org.aoju.bus.cron.timings.TimerTask
Packages that use TimerTask
Package
Description
时间轮实现,重写了kafka的TimingWheel
时间轮一般会实现成一个环形结构,类似一个时钟,分为很多槽,一个槽代表一个时间间隔,每个槽使用双向链表存储定时任务
指针周期性地跳动,跳动到一个槽位,就执行该槽位的定时任务
-
Uses of TimerTask in org.aoju.bus.cron.timings
Fields in org.aoju.bus.cron.timings declared as TimerTaskModifier and TypeFieldDescriptionprotected TimerTaskTimerTask.next下一个节点protected TimerTaskTimerTask.prev上一个节点Methods in org.aoju.bus.cron.timings with parameters of type TimerTaskModifier and TypeMethodDescriptionvoid添加任务void新增任务,将任务加入到双向链表的头部boolean添加任务到时间轮voidTimerTaskList.removeTask(TimerTask timerTask) 移除任务Method parameters in org.aoju.bus.cron.timings with type arguments of type TimerTask