程序包的使用
org.springframework.scheduling.concurrent
使用org.springframework.scheduling.concurrent的程序包 程序包 说明 org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.scheduling.concurrent Scheduling convenience classes for thejava.util.concurrent
andjavax.enterprise.concurrent
packages, allowing to set up a ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring context.org.springframework.messaging.simp.config使用的org.springframework.scheduling.concurrent中的类 类 说明 ThreadPoolTaskExecutor JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor
.org.springframework.scheduling.concurrent使用的org.springframework.scheduling.concurrent中的类 类 说明 ConcurrentTaskExecutor Adapter that takes ajava.util.concurrent.Executor
and exposes a SpringTaskExecutor
for it.ConcurrentTaskScheduler Adapter that takes ajava.util.concurrent.ScheduledExecutorService
and exposes a SpringTaskScheduler
for it.CustomizableThreadFactory Implementation of theThreadFactory
interface, allowing for customizing the created threads (name, priority, etc).ExecutorConfigurationSupport Base class for setting up aExecutorService
(typically aThreadPoolExecutor
orScheduledThreadPoolExecutor
).ScheduledExecutorTask JavaBean that describes a scheduled executor task, consisting of theRunnable
and a delay plus period.