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:
- AppShutdownStrategy#awaitShutdown -> AppShutdownStrategy#releaseAwaitLatch -> AppShutdownStrategy#finishShutdown
- AppShutdownStrategy#awaitShutdown -> AppShutdownStrategy#finishShutdown
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
class BIOShutdownStrategy[F]class CatsEffectIOShutdownStrategy[F]class ImmediateExitShutdownStrategy[F]
Members list
In this article