Interface ShutdownableResource
-
- All Superinterfaces:
Shutdownable
- All Known Subinterfaces:
Router,ShutdownableExecutorService,ShutdownableScheduledExecutorService
- All Known Implementing Classes:
AbstractShutdownableResource,AsyncPoolImpl,AsyncQOSPoolImpl,Router4Impl,ShutdownableChannelGroup,ShutdownableExecutorServiceImpl,ShutdownableScheduledExecutorServiceImpl,SyncResourceRegistry,SyncShutdownableAdapter
public interface ShutdownableResource extends Shutdownable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisShutdown()Returns true if this resource has been shut down.booleanisTerminated()Returns true if the resource has completed shutting down.-
Methods inherited from interface com.linkedin.alpini.base.registry.Shutdownable
shutdown, waitForShutdown, waitForShutdown
-
-
-
-
Method Detail
-
isShutdown
boolean isShutdown()
Returns true if this resource has been shut down.- Returns:
- true if this resource has been shut down
-
isTerminated
boolean isTerminated()
Returns true if the resource has completed shutting down. Note that isTerminated is never true unless shutdown was called first.- Returns:
- true if the resource has completed shutting down.
-
-