接口的使用
org.springframework.core.task.TaskDecorator
使用TaskDecorator的程序包 程序包 说明 org.springframework.core.task This package defines Spring's core TaskExecutor abstraction, and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.org.springframework.core.task.support Support classes for Spring's TaskExecutor abstraction.org.springframework.jca.work Convenience classes for scheduling based on the JCA WorkManager facility, as supported within ResourceAdapters.org.springframework.scheduling.commonj Convenience classes for scheduling based on the CommonJ WorkManager/TimerManager facility, as supported by IBM WebSphere 6.0+ and BEA WebLogic 9.0+.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.core.task中TaskDecorator的使用
参数类型为TaskDecorator的org.springframework.core.task中的方法 修饰符和类型 方法 说明 void
SimpleAsyncTaskExecutor. setTaskDecorator(TaskDecorator taskDecorator)
Specify a customTaskDecorator
to be applied to anyRunnable
about to be executed.org.springframework.core.task.support中TaskDecorator的使用
参数类型为TaskDecorator的org.springframework.core.task.support中的方法 修饰符和类型 方法 说明 protected void
TaskExecutorAdapter. doExecute(Executor concurrentExecutor, TaskDecorator taskDecorator, Runnable runnable)
Actually execute the givenRunnable
(which may be a user-supplied task or a wrapper around a user-supplied task) with the given executor.void
TaskExecutorAdapter. setTaskDecorator(TaskDecorator taskDecorator)
Specify a customTaskDecorator
to be applied to anyRunnable
about to be executed.org.springframework.jca.work中TaskDecorator的使用
参数类型为TaskDecorator的org.springframework.jca.work中的方法 修饰符和类型 方法 说明 void
WorkManagerTaskExecutor. setTaskDecorator(TaskDecorator taskDecorator)
Specify a customTaskDecorator
to be applied to anyRunnable
about to be executed.org.springframework.scheduling.commonj中TaskDecorator的使用
参数类型为TaskDecorator的org.springframework.scheduling.commonj中的方法 修饰符和类型 方法 说明 void
WorkManagerTaskExecutor. setTaskDecorator(TaskDecorator taskDecorator)
已过时。Specify a customTaskDecorator
to be applied to anyRunnable
about to be executed.org.springframework.scheduling.concurrent中TaskDecorator的使用
参数类型为TaskDecorator的org.springframework.scheduling.concurrent中的方法 修饰符和类型 方法 说明 void
ConcurrentTaskExecutor. setTaskDecorator(TaskDecorator taskDecorator)
Specify a customTaskDecorator
to be applied to anyRunnable
about to be executed.void
ThreadPoolTaskExecutor. setTaskDecorator(TaskDecorator taskDecorator)
Specify a customTaskDecorator
to be applied to anyRunnable
about to be executed.