クラスの使用
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 のクラス修飾子と型クラス説明classclassSpring のTaskSchedulerインターフェースの単純な実装。単一のスケジューラスレッドを使用し、スケジュールされたすべてのタスクを個別のスレッドで実行します。型 ContextClosedEvent のパラメーターを持つ org.springframework.scheduling.concurrent のメソッド修飾子と型メソッド説明voidExecutorConfigurationSupport.onApplicationEvent(ContextClosedEvent event) 早期シャットダウンを開始するためのContextClosedEventハンドラー。voidSimpleAsyncTaskScheduler.onApplicationEvent(ContextClosedEvent event)