Expand description
hyperlane-plugin-shutdown
Graceful shutdown coordinator plugin for Hyperlane providing OS signal
arming (SIGINT/SIGTERM), lock-free in-flight draining via RAII
ShutdownGuard, LIFO async ShutdownCallback execution, and
ServerControlHook integration.
Structs§
- Shutdown
Config - Configuration controlling graceful drain and OS signal handling for
ShutdownCoordinator. - Shutdown
Coordinator - Thread-safe lock-free graceful shutdown and request-drain coordinator.
- Shutdown
Guard - RAII guard representing one active unit of in-flight work tracked by
ShutdownCoordinator. - Shutdown
Plugin - Process-wide
ShutdownPluginsingleton wrappingShutdownCoordinator. - Shutdown
Report - Summary report returned once a graceful shutdown sequence finishes.
Constants§
- DEFAULT_
SHUTDOWN_ CALLBACK_ TIMEOUT_ MS - Default per-callback shutdown hook timeout in milliseconds (5 seconds).
- DEFAULT_
SHUTDOWN_ DRAIN_ TIMEOUT_ MS - Default maximum graceful drain window in milliseconds (30 seconds).
Traits§
- Shutdown
Callback - Pluggable asynchronous cleanup hook executed in LIFO order during graceful shutdown.
Type Aliases§
- Shutdown
Future - Boxed
Sendfuture returned byShutdownCallback::on_shutdown.