Interface ExecutorServiceSupplierObserver.SupplierObserverContext
- Enclosing interface:
ExecutorServiceSupplierObserver
public static interface ExecutorServiceSupplierObserver.SupplierObserverContext
Context with which suppliers (or their surrogates) interact with observers.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerExecutorService
(ExecutorService executorService, int index) Informs the observer which created the context of a new executor service created by the supplier.void
unregisterExecutorService
(ExecutorService executorService) Informs the observer that an executor is shutting down.
-
Method Details
-
registerExecutorService
Informs the observer which created the context of a new executor service created by the supplier.- Parameters:
executorService
- the new executor serviceindex
- unique index value for the executor service within its supplier
-
unregisterExecutorService
Informs the observer that an executor is shutting down.- Parameters:
executorService
- the executor service shutting down
-