Interface GracefulShutdownCoordinator.ShutdownComponent

Enclosing class:
GracefulShutdownCoordinator

public static interface GracefulShutdownCoordinator.ShutdownComponent
Interface for components that can be gracefully shut down.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Flushes pending data and write-behind caches.
    void
    Forcefully shuts down the component immediately.
    boolean
    Checks if there are in-flight requests being processed.
    void
    Gracefully shuts down the component.
    void
    Stops accepting new connections or requests.
    void
    Takes a snapshot of current state.
  • Method Details

    • stopAcceptingConnections

      void stopAcceptingConnections() throws Exception
      Stops accepting new connections or requests.
      Throws:
      Exception
    • flushData

      void flushData() throws Exception
      Flushes pending data and write-behind caches.
      Throws:
      Exception
    • takeSnapshot

      void takeSnapshot() throws Exception
      Takes a snapshot of current state.
      Throws:
      Exception
    • shutdown

      void shutdown() throws Exception
      Gracefully shuts down the component.
      Throws:
      Exception
    • forcefulShutdown

      void forcefulShutdown() throws Exception
      Forcefully shuts down the component immediately.
      Throws:
      Exception
    • hasInFlightRequests

      boolean hasInFlightRequests() throws Exception
      Checks if there are in-flight requests being processed.
      Throws:
      Exception