Interface ShutdownableExecutorService
- All Superinterfaces:
Executor,ExecutorService,ExecutorService,Shutdownable,ShutdownableResource
- All Known Subinterfaces:
ShutdownableScheduledExecutorService
- All Known Implementing Classes:
ShutdownableExecutorServiceImpl,ShutdownableScheduledExecutorServiceImpl
An
ExecutorService interface which also extends the
Shutdownable interface.-
Method Summary
Modifier and TypeMethodDescription<T extends ExecutorService>
TReturns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.Methods inherited from interface com.linkedin.alpini.base.concurrency.ExecutorService
submit, submit, submitMethods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNowMethods inherited from interface com.linkedin.alpini.base.registry.Shutdownable
shutdown, waitForShutdown, waitForShutdownMethods inherited from interface com.linkedin.alpini.base.registry.ShutdownableResource
isShutdown, isTerminated
-
Method Details
-
unwrap
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
-