インターフェースの使用
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 使用
修飾子と型メソッド説明protected void
TaskExecutorAdapter.doExecute
(ExecutorSE concurrentExecutor, TaskDecorator taskDecorator, RunnableSE runnable) 実際に、指定されたエグゼキューターを使用して、指定されたRunnable
(ユーザー指定タスクまたはユーザー指定タスクのラッパー)を実行します。final void
TaskExecutorAdapter.setTaskDecorator
(TaskDecorator taskDecorator) 実行しようとしているRunnable
SE に適用するカスタムTaskDecorator
を指定します。org.springframework.scheduling.concurrent 内の TaskDecorator 使用
修飾子と型メソッド説明final void
ConcurrentTaskExecutor.setTaskDecorator
(TaskDecorator taskDecorator) 実行しようとしているRunnable
SE に適用するカスタムTaskDecorator
を指定します。void
ThreadPoolTaskExecutor.setTaskDecorator
(TaskDecorator taskDecorator) 実行しようとしているRunnable
SE に適用するカスタムTaskDecorator
を指定します。