类的使用
org.springframework.scheduling.concurrent.ScheduledExecutorTask
使用ScheduledExecutorTask的程序包 程序包 说明 org.springframework.scheduling.concurrent Scheduling convenience classes for thejava.util.concurrentandjavax.enterprise.concurrentpackages, allowing to set up a ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring context.org.springframework.scheduling.concurrent中ScheduledExecutorTask的使用
参数类型为ScheduledExecutorTask的org.springframework.scheduling.concurrent中的方法 修饰符和类型 方法 说明 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.