Interface ShutdownableExecutorService
-
- All Superinterfaces:
java.util.concurrent.Executor
,ExecutorService
,java.util.concurrent.ExecutorService
,Shutdownable
,ShutdownableResource
- All Known Subinterfaces:
ShutdownableScheduledExecutorService
- All Known Implementing Classes:
ShutdownableExecutorServiceImpl
,ShutdownableScheduledExecutorServiceImpl
public interface ShutdownableExecutorService extends ExecutorService, ShutdownableResource
AnExecutorService
interface which also extends theShutdownable
interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ExecutorService>
Tunwrap(java.lang.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.-
Methods inherited from interface com.linkedin.alpini.base.concurrency.ExecutorService
submit, submit, submit
-
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow
-
Methods inherited from interface com.linkedin.alpini.base.registry.Shutdownable
shutdown, waitForShutdown, waitForShutdown
-
Methods inherited from interface com.linkedin.alpini.base.registry.ShutdownableResource
isShutdown, isTerminated
-
-
-
-
Method Detail
-
unwrap
<T extends ExecutorService> T unwrap(java.lang.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:
java.lang.ClassCastException
- If no object found that implements the interface
-
-