Interface ShutdownableResource

All Superinterfaces:
Shutdownable
All Known Subinterfaces:
Router, ShutdownableExecutorService, ShutdownableScheduledExecutorService
All Known Implementing Classes:
AbstractShutdownableResource, Router4Impl, ShutdownableChannelGroup, ShutdownableExecutorServiceImpl, ShutdownableScheduledExecutorServiceImpl, SyncResourceRegistry, SyncShutdownableAdapter

public interface ShutdownableResource extends Shutdownable
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if this resource has been shut down.
    boolean
    Returns true if the resource has completed shutting down.

    Methods inherited from interface com.linkedin.alpini.base.registry.Shutdownable

    shutdown, waitForShutdown, waitForShutdown
  • Method Details

    • 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.