Interface ExecutorServiceSupplierObserver.SupplierObserverContext
-
- Enclosing interface:
- ExecutorServiceSupplierObserver
public static interface ExecutorServiceSupplierObserver.SupplierObserverContext
Context with which suppliers (or their surrogates) interact with observers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
registerExecutorService
void registerExecutorService(ExecutorService executorService, int index)
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
void unregisterExecutorService(ExecutorService executorService)
Informs the observer that an executor is shutting down.- Parameters:
executorService
- the executor service shutting down
-
-