Lines Matching refs:shutdown
55 * adding a shutdown hook to wait for their completion.
85 * does so by using daemon threads and adding a shutdown hook to wait for
116 * Add a shutdown hook to wait for thread completion in the given
119 * shutdown, instead giving these daemon threads a chance to terminate
136 // is undefined in shutdown hooks.
137 // This is because the logging code installs a shutdown hook of its
139 service.shutdown();
151 * adding a shutdown hook to wait for their completion.
172 * and adding a shutdown hook to wait for their completion.
197 * executor has been shutdown).
201 * locking overhead on each task submission in order to implement shutdown
215 * Finally, a call to {@code shutdown} or {@code shutdownNow} may result
232 * (runningTasks, shutdown, terminationCondition) of the executor
236 /** Signaled after the executor is shutdown and running tasks are done */
242 * - Active: shutdown == false
243 * - Shutdown: runningTasks > 0 and shutdown == true
244 * - Terminated: runningTasks == 0 and shutdown == true
247 private boolean shutdown = false;
263 return shutdown;
270 public void shutdown() {
273 shutdown = true;
282 shutdown();
290 return shutdown && runningTasks == 0;
321 * shutdown
327 throw new RejectedExecutionException("Executor already shutdown");
429 public void shutdown() {
430 delegate.shutdown();