Class ShutdownReadinessListener
java.lang.Object
io.quarkus.smallrye.health.runtime.ShutdownReadinessListener
- All Implemented Interfaces:
ShutdownListener
listener that changes the readiness probe on pre-shudown
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.
TODO: We may want a timeout here, so the readiness probe will be down for a set timeout before shutdown continues
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.runtime.shutdown.ShutdownListener
ShutdownListener.ShutdownNotification
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
preShutdown
(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
- Specified by:
preShutdown
in interfaceShutdownListener
-