Class ShutdownReadinessListener

java.lang.Object
io.quarkus.smallrye.health.runtime.ShutdownReadinessListener
All Implemented Interfaces:
io.quarkus.runtime.shutdown.ShutdownListener

public class ShutdownReadinessListener extends Object implements io.quarkus.runtime.shutdown.ShutdownListener
listener that changes the readiness probe on pre-shutdown. Note that unless there is another preShutdown listener present this will generally have no real effect, as after pre-shutdown the HTTP endpoint will return service unavailable.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.quarkus.runtime.shutdown.ShutdownListener

    io.quarkus.runtime.shutdown.ShutdownListener.ShutdownNotification
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    preShutdown(io.quarkus.runtime.shutdown.ShutdownListener.ShutdownNotification notification)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.quarkus.runtime.shutdown.ShutdownListener

    shutdown
  • Constructor Details

    • ShutdownReadinessListener

      public ShutdownReadinessListener()
  • Method Details

    • preShutdown

      public void preShutdown(io.quarkus.runtime.shutdown.ShutdownListener.ShutdownNotification notification)
      Specified by:
      preShutdown in interface io.quarkus.runtime.shutdown.ShutdownListener