Interface TerminationHandlerProvider


public interface TerminationHandlerProvider
SPI service interface for providing hooks to handle graceful termination. This class is mostly plumbing and implementations should be mostly boilerplate that passes the handlers along from the Plugin class. See TerminationHandler for the class that's actually invoked upon receiving a termination signal.

Note that this class is mostly for plumbing - translating a low-level signal received by a node process into a higher-level set of operations. Logic to respond to planned changes in cluster membership should use Node Shutdown primitives instead, see ShutdownAwarePlugin for lower-level plugin operations and NodesShutdownMetadata for cluster state level operations.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a TerminationHandler implementation which will be invoked when the node is about to shut down, but before the core services are terminated.