Class ShutdownDelayInitiatedEvent

java.lang.Object
io.quarkus.runtime.ShutdownDelayInitiatedEvent

public class ShutdownDelayInitiatedEvent extends Object
Event payload that is fired in a pre-shutdown phase if quarkus.shutdown.delay-enabled=true.

This event is observed as follows:

     void onPreShutdown(@Observes ShutdownDelayInitiatedEvent ev) {
         LOGGER.info("The application is about to shutdown...");
     }
 
The annotated method can access other injected beans.
  • Constructor Details

    • ShutdownDelayInitiatedEvent

      public ShutdownDelayInitiatedEvent()