类的使用
cn.taketoday.scheduling.concurrent.ScheduledExecutorTask
使用ScheduledExecutorTask的程序包
程序包
说明
Scheduling convenience classes for the
java.util.concurrent
and jakarta.enterprise.concurrent packages, allowing to set up a
ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Framework
context.-
cn.taketoday.scheduling.concurrent中ScheduledExecutorTask的使用
修饰符和类型方法说明protected RunnableScheduledExecutorFactoryBean.getRunnableToSchedule(ScheduledExecutorTask task) Determine the actual Runnable to schedule for the given task.protected voidScheduledExecutorFactoryBean.registerTasks(ScheduledExecutorTask[] tasks, ScheduledExecutorService executor) Register the specifiedScheduledExecutorTaskson the givenScheduledExecutorService.voidScheduledExecutorFactoryBean.setScheduledExecutorTasks(ScheduledExecutorTask... scheduledExecutorTasks) Register a list of ScheduledExecutorTask objects with the ScheduledExecutorService that this FactoryBean creates.