izumi.distage.roles.launcher.AppShutdownStrategy
See theAppShutdownStrategy companion object
trait AppShutdownStrategy[F[_]] extends AppShutdownInitiator
There are two possible graceful termination paths for an application:
-
User explicitly calls AppShutdownStrategy#releaseAwaitLatch
-
The application received SIGINT and the shutdown hook triggers.
It's important to remember that all other threads will continue to run until the shutdown hook finishes, after that they'll stop abruptly without even receiving any exceptions.
Izumi runtime will call AppShutdownStrategy#finishShutdown when all the cleanups are done.
Possible code paths:
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class AsyncShutdownStrategy[F]class ImmediateExitShutdownStrategy[F]class JvmExitHookBlockingShutdownStrategy[F]
Members list
In this article