Interface ShutdownableExecutorService

All Superinterfaces:
Executor, ExecutorService, ExecutorService, Shutdownable, ShutdownableResource
All Known Subinterfaces:
ShutdownableScheduledExecutorService
All Known Implementing Classes:
ShutdownableExecutorServiceImpl, ShutdownableScheduledExecutorServiceImpl

public interface ShutdownableExecutorService extends ExecutorService, ShutdownableResource
An ExecutorService interface which also extends the Shutdownable interface.
  • Method Details

    • unwrap

      <T extends ExecutorService> T unwrap(Class<T> clazz)
      Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
      Parameters:
      clazz - A Class defining an interface that the result must implement.
      Returns:
      an object that implements the interface. May be a proxy for the actual implementing object.
      Throws:
      ClassCastException - If no object found that implements the interface