The start, schedule, and stop of the chart data updater are done by calling TimerManager of CommonJ Timer (Listing 14).
图表数据更新器的启动、调度和停止是通过调用CommonJ Timer的TimerManager实现的(清单14)。
Timer has a number of schedule() overloads, indicating whether a given task is to be one-shot or a repeating, and takes a TimerTask instance to fire.
Timer 有许多 schedule() 重载,它们提示某一任务是一次性还是重复的,并且有一个启动的 TimerTask 实例。
After I've defined a Timer instance, I then need to schedule it to launch while also forcing JUnit to hang around for the Timer instance to complete.
定义了Timer实例后,我就需要确定其何时运行,同时强制JUnit挂起直至Timer实例完成。
应用推荐