Protectedgeneratea random id for a process that is not assigned to a different process yet.
Called when the backend application shuts down.
When shutdown is initiated via SIGINT/SIGTERM, contributions are dispatched
in parallel and any returned promise is awaited up to SHUTDOWN_TIMEOUT_MS
milliseconds while injected services from the root container are still
resolvable.
On synchronous-exit fallback paths (uncaught exceptions, server bind failures, or normal process exit), the hook is invoked synchronously and any returned promise is discarded. Implementations should be resilient to either path.
Contributions must be independent of one another during stop because they are dispatched in parallel.
Registers the given process into this manager. Both on process termination and on error, the process will be automatically removed from the manager.
the process to register.
Removes the process from this process manager. Invoking this method, will make sure that the process is terminated before eliminating it from the manager's cache.
the process to unregister from this process manager.
Contribution for hooking into the backend lifecycle:
initialize()configure(expressApp)onStart(httpServer)onStop()