You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _versions/main/guides/lifecycle.adoc
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -347,6 +347,9 @@ It is not set by default, thus no delay is applied.
347
347
The `@io.quarkus.runtime.ShutdownDelayInitiated` annotation is used to mark a business method of a CDI bean that should be executed when the shutdown delay initiates.
348
348
The annotated method must be non-private and non-static and declare no arguments. Furthermore, `quarkus.shutdown.delay-enabled` configuration needs to be set to `true`.
349
349
350
+
351
+
TIP: Declared `@ShutdownDelayInitiated` methods are always executed and as such may block the shutdown procedure.
352
+
350
353
The behavior is similar to a declaration of a `ShutdownDelayInitiatedEvent` observer.
351
354
The following examples are functionally equivalent.
0 commit comments