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 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
    Informs the observer that an executor is shutting down.
  • Method Details

    • 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 service
      index - 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