約258,000件1ページ目

日本語のみで絞り込む

2012/5/8 -executorService.shutdownNow(); executorService.awaitTermination();. When calling shutdownNow , the executor will (generally) try to interrupt ...

An ExecutorService can be shut down, which will cause it to reject new tasks. Two different methods are provided for shutting down an ExecutorService . The ...

2026/10/4 -To shut down a Java ExecutorService, we call shutdown() and wait with awaitTermination(), and we call shutdownNow() only if the tasks run ...

2024/12/12 -Graceful Shutdown: Executor shut down methods stops from new tasks being submitted. Awaits terminations waits for existing tasks to be completed ...

Two different methods are provided for shutting down an ExecutorService. The shutdown() method will allow previously submitted tasks to execute before ...

2016/4/14 -I was recently working on an application that used hibernate for db access and lucene for storing and searching text.

2014/11/20 -ExecutorService - 10 tips and tricks · 1. Name pool threads · 2. Switch names according to context · 3. Explicit and safe shutdown · 4. Handle ...

2024/5/11 -Learn how to use ExecutorService in various scenarios to wait for threads to finish their execution.

First shutdown() method is invoked. This prevents from new tasks being submitted to the pool. · Then awaitTermination() method is invoked with a timeout of n ...

2022/11/8 -With Java 19, the ExecutorService implements the autocloseable interface. This makes it a lot easier to shut down an ExecutorService. In the ...