@NotThreadSafe public final class ManagedExecutorService extends Object
ExecutorService with additional helper methods.| Constructor and Description |
|---|
ManagedExecutorService(ExecutorService aES) |
| Modifier and Type | Method and Description |
|---|---|
EInterrupt |
shutdownAndWaitUntilAllTasksAreFinished()
Call shutdown on the
ExecutorService and wait indefinitely until it
terminated. |
static EInterrupt |
shutdownAndWaitUntilAllTasksAreFinished(ExecutorService aES) |
EInterrupt |
waitUntilAllTasksAreFinished()
Wait indefinitely on the
ExecutorService until it terminates. |
public ManagedExecutorService(@Nonnull ExecutorService aES)
@Nonnull public EInterrupt waitUntilAllTasksAreFinished()
ExecutorService until it terminates.EInterrupt.INTERRUPTED if the executor service was
interrupted while awaiting termination. Never null.@Nonnull public EInterrupt shutdownAndWaitUntilAllTasksAreFinished()
ExecutorService and wait indefinitely until it
terminated.EInterrupt.INTERRUPTED if the executor service was
interrupted while awaiting termination. Never null.@Nonnull public static EInterrupt shutdownAndWaitUntilAllTasksAreFinished(@Nonnull ExecutorService aES)
Copyright © 2014–2016 Philip Helger. All rights reserved.