@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) |
public ManagedExecutorService(@Nonnull ExecutorService aES)
@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–2015 Philip Helger. All rights reserved.