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 TypeMethodDescriptionvoidSimpleAsyncTaskExecutor.setTaskDecorator(TaskDecorator taskDecorator) Specify a customTaskDecoratorto be applied to anyRunnableabout to be executed. -
Uses of TaskDecorator in org.springframework.core.task.support
Classes in org.springframework.core.task.support that implement TaskDecoratorModifier and TypeClassDescriptionclassCompositeTaskDecoratorthat delegates to other task decorators.classTaskDecoratorthatwraps the executionof tasks, assisting with context propagation.Methods in org.springframework.core.task.support with parameters of type TaskDecoratorModifier and TypeMethodDescriptionprotected voidTaskExecutorAdapter.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 voidTaskExecutorAdapter.setTaskDecorator(TaskDecorator taskDecorator) Specify a customTaskDecoratorto be applied to anyRunnableabout 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 voidConcurrentTaskExecutor.setTaskDecorator(TaskDecorator taskDecorator) Specify a customTaskDecoratorto be applied to anyRunnableabout to be executed.voidThreadPoolTaskExecutor.setTaskDecorator(TaskDecorator taskDecorator) Specify a customTaskDecoratorto be applied to anyRunnableabout to be executed.