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