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
ExecutorService s currently managed. |
java.util.concurrent.ExecutorService |
remove(java.util.concurrent.ExecutorService executorService) |
void |
shutdownAll() |
@Nonnull public java.util.Collection<java.util.concurrent.ExecutorService> getExecutorServices()
ExecutorServiceManager
ExecutorService
s currently managed.getExecutorServices
in interface ExecutorServiceManager
ExecutorService
s 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 ExecutorServiceManager
public void shutdownAll()
shutdownAll
in interface ExecutorServiceManager