public class DefaultExecutorServiceManager extends java.lang.Object implements ExecutorServiceManager
| Constructor and Description |
|---|
DefaultExecutorServiceManager() |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.ExecutorService |
add(java.util.concurrent.ExecutorService executorService) |
java.util.Collection<java.util.concurrent.ExecutorService> |
getExecutorServices()
Returns an immutable view of all
ExecutorServices currently managed. |
java.util.concurrent.ExecutorService |
remove(java.util.concurrent.ExecutorService executorService) |
void |
shutdownAll() |
@Nonnull public java.util.Collection<java.util.concurrent.ExecutorService> getExecutorServices()
ExecutorServiceManagerExecutorServices currently managed.getExecutorServices in interface ExecutorServiceManagerExecutorServices or empty if none.@Nullable
public java.util.concurrent.ExecutorService add(@Nullable
java.util.concurrent.ExecutorService executorService)
add in interface ExecutorServiceManager@Nullable
public java.util.concurrent.ExecutorService remove(@Nullable
java.util.concurrent.ExecutorService executorService)
remove in interface ExecutorServiceManagerpublic void shutdownAll()
shutdownAll in interface ExecutorServiceManager