程序包的使用
cn.taketoday.scheduling.concurrent
程序包
说明
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.Generic support classes for scheduling.
-
类说明Adapter that takes a
java.util.concurrent.Executorand exposes a FrameworkTaskExecutorfor it.Adapter that takes ajava.util.concurrent.ScheduledExecutorServiceand exposes a FrameworkTaskSchedulerfor it.Implementation of theThreadFactoryinterface, allowing for customizing the created threads (name, priority, etc).Base class for setting up aExecutorService(typically aThreadPoolExecutororScheduledThreadPoolExecutor).JavaBean that describes a scheduled executor task, consisting of theRunnableand a delay plus period. -
类说明JavaBean that allows for configuring a
ThreadPoolExecutorin bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a FrameworkTaskExecutor.Implementation ofTaskSchedulerinterface, wrapping a nativeScheduledThreadPoolExecutor.