Class ShutdownListenerBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.ShutdownListenerBuildItem

public final class ShutdownListenerBuildItem extends io.quarkus.builder.item.MultiBuildItem
A build item that holds a ShutdownListener instance.

Allows registration of listeners to be notified during application shutdown.

It should be noted, that in most cases, this build item should not be used and instead extensions should opt for ShutdownContext (via ShutdownContextBuildItem)

  • Field Details

    • shutdownListener

      final io.quarkus.runtime.shutdown.ShutdownListener shutdownListener
  • Constructor Details

    • ShutdownListenerBuildItem

      public ShutdownListenerBuildItem(io.quarkus.runtime.shutdown.ShutdownListener shutdownListener)
  • Method Details

    • getShutdownListener

      public io.quarkus.runtime.shutdown.ShutdownListener getShutdownListener()