Skip to content

Commit 5577aef

Browse files
authored
Merge pull request quarkusio#50833 from manovotn/shutdownDelayBlockingDoc
Document that @ShutdownDelayInitiated can block the shutdown
2 parents 840ee21 + e711006 commit 5577aef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/main/asciidoc/lifecycle.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ It is not set by default, thus no delay is applied.
347347
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.
348348
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`.
349349

350+
351+
TIP: Declared `@ShutdownDelayInitiated` methods are always executed and as such may block the shutdown procedure.
352+
350353
The behavior is similar to a declaration of a `ShutdownDelayInitiatedEvent` observer.
351354
The following examples are functionally equivalent.
352355

0 commit comments

Comments
 (0)