インターフェースの使用
org.springframework.core.task.TaskDecorator
パッケージ
説明
このパッケージは、Spring のコア TaskExecutor 抽象化を定義し、SyncTaskExecutor および SimpleAsyncTaskExecutor 実装を提供します。
Spring の TaskExecutor 抽象化のサポートクラス。
java.util.concurrent
および jakarta.enterprise.concurrent
パッケージのコンビニエンスクラスをスケジュールし、Spring コンテキストで ThreadPoolExecutor または ScheduledThreadPoolExecutor を Bean としてセットアップできるようにします。org.springframework.core.task 内の TaskDecorator 使用
修飾子と型メソッド説明void
SimpleAsyncTaskExecutor.setTaskDecorator
(TaskDecorator taskDecorator) 実行しようとしているRunnable
SE に適用するカスタムTaskDecorator
を指定します。org.springframework.core.task.support 内の TaskDecorator 使用
修飾子と型クラス説明class
他のタスクデコレータに委譲する複合TaskDecorator
。class
タスクのTaskDecorator
およびwraps the execution
は、コンテキストの伝播を支援します。修飾子と型メソッド説明protected void
TaskExecutorAdapter.doExecute
(ExecutorSE concurrentExecutor, TaskDecorator taskDecorator, RunnableSE runnable) 実際に、指定されたエグゼキューターを使用して、指定されたRunnable
(ユーザー指定タスクまたはユーザー指定タスクのラッパー)を実行します。final void
TaskExecutorAdapter.setTaskDecorator
(TaskDecorator taskDecorator) 実行しようとしているRunnable
SE に適用するカスタムTaskDecorator
を指定します。修飾子コンストラクター説明CompositeTaskDecorator
(CollectionSE<? extends TaskDecorator> taskDecorators) 新しいインスタンスを作成します。org.springframework.scheduling.concurrent 内の TaskDecorator 使用
修飾子と型メソッド説明final void
ConcurrentTaskExecutor.setTaskDecorator
(TaskDecorator taskDecorator) 実行しようとしているRunnable
SE に適用するカスタムTaskDecorator
を指定します。void
ThreadPoolTaskExecutor.setTaskDecorator
(TaskDecorator taskDecorator) 実行しようとしているRunnable
SE に適用するカスタムTaskDecorator
を指定します。