Class ShutdownReadinessListener
- java.lang.Object
-
- io.quarkus.smallrye.health.runtime.ShutdownReadinessListener
-
- All Implemented Interfaces:
ShutdownListener
public class ShutdownReadinessListener extends Object implements 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
Constructors Constructor Description ShutdownReadinessListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
preShutdown
public void preShutdown(ShutdownListener.ShutdownNotification notification)
- Specified by:
preShutdown
in interfaceShutdownListener
-
-