Skip to main content

Crate hyperlane_plugin_shutdown

Crate hyperlane_plugin_shutdown 

Source
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§

ShutdownConfig
Configuration controlling graceful drain and OS signal handling for ShutdownCoordinator.
ShutdownCoordinator
Thread-safe lock-free graceful shutdown and request-drain coordinator.
ShutdownGuard
RAII guard representing one active unit of in-flight work tracked by ShutdownCoordinator.
ShutdownPlugin
Process-wide ShutdownPlugin singleton wrapping ShutdownCoordinator.
ShutdownReport
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§

ShutdownCallback
Pluggable asynchronous cleanup hook executed in LIFO order during graceful shutdown.

Type Aliases§

ShutdownFuture
Boxed Send future returned by ShutdownCallback::on_shutdown.