クラスの使用
org.springframework.context.event.ContextClosedEvent
ContextClosedEvent を使用するパッケージ
パッケージ
説明
java.util.concurrent
および jakarta.enterprise.concurrent
パッケージのコンビニエンスクラスをスケジュールし、Spring コンテキストで ThreadPoolExecutor または ScheduledThreadPoolExecutor を Bean としてセットアップできるようにします。org.springframework.scheduling.concurrent 内の ContextClosedEvent 使用
型 ContextClosedEvent のパラメーターを持つ org.springframework.scheduling.concurrent のメソッド修飾子と型メソッド説明void
ExecutorConfigurationSupport.onApplicationEvent
(ContextClosedEvent event) 早期シャットダウンを開始するためのContextClosedEvent
ハンドラー。void
SimpleAsyncTaskScheduler.onApplicationEvent
(ContextClosedEvent event)