Uses of Interface
org.springframework.core.task.TaskDecorator
Packages that use TaskDecorator
Package
Description
This package defines Spring's core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
Support classes for Spring's TaskExecutor abstraction.
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 Spring
context.-
Uses of TaskDecorator in org.springframework.core.task
Methods in org.springframework.core.task with parameters of type TaskDecoratorModifier and TypeMethodDescriptionvoid
SimpleAsyncTaskExecutor.setTaskDecorator
(TaskDecorator taskDecorator) Specify a customTaskDecorator
to be applied to anyRunnable
about to be executed. -
Uses of TaskDecorator in org.springframework.core.task.support
Classes in org.springframework.core.task.support that implement TaskDecoratorModifier and TypeClassDescriptionclass
CompositeTaskDecorator
that delegates to other task decorators.class
TaskDecorator
thatwrap the execution
of tasks, assisting with context propagation.Methods in org.springframework.core.task.support with parameters of type TaskDecoratorModifier and TypeMethodDescriptionprotected 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.final void
TaskExecutorAdapter.setTaskDecorator
(TaskDecorator taskDecorator) Specify a customTaskDecorator
to be applied to anyRunnable
about to be executed.Constructor parameters in org.springframework.core.task.support with type arguments of type TaskDecoratorModifierConstructorDescriptionCompositeTaskDecorator
(Collection<? extends TaskDecorator> taskDecorators) Create a new instance. -
Uses of TaskDecorator in org.springframework.scheduling.concurrent
Methods in org.springframework.scheduling.concurrent with parameters of type TaskDecoratorModifier and TypeMethodDescriptionfinal 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.