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 -
Method Summary
Modifier and TypeMethodDescriptionvoidpreShutdown(io.quarkus.runtime.shutdown.ShutdownListener.ShutdownNotification notification) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
preShutdownin interfaceio.quarkus.runtime.shutdown.ShutdownListener
-