Package express.mvp.myra.transport.lifecycle
package express.mvp.myra.transport.lifecycle
Transport lifecycle management including graceful shutdown support.
This package provides components for managing transport lifecycle, particularly around graceful shutdown with proper draining of in-flight operations.
Key Components
ShutdownCoordinator- Coordinates orderly shutdown with timeout supportShutdownPhase- Enumeration of shutdown phasesShutdownListener- Callback interface for shutdown events
Shutdown Phases
Graceful shutdown proceeds through these phases:
- RUNNING: Normal operation
- DRAINING: Stop accepting new operations, drain in-flight
- CLOSING: Close connections
- TERMINATED: All resources released
- See Also:
-
ClassDescriptionRepresents the states of a transport connection.Callback interface for connection state change events.Thread-safe state machine for managing connection lifecycle.Coordinates graceful shutdown of transport resources.Callback interface for shutdown lifecycle events.Represents the phases of transport shutdown.