Class GracefulShutdownFilter
java.lang.Object
io.quarkus.vertx.http.runtime.filters.GracefulShutdownFilter
- All Implemented Interfaces:
io.quarkus.runtime.shutdown.ShutdownListener,io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest>
public class GracefulShutdownFilter
extends Object
implements io.quarkus.runtime.shutdown.ShutdownListener, io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest>
-
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 TypeMethodDescriptionvoidhandle(io.vertx.core.http.HttpServerRequest event) protected static booleanisAffectedByJDK8335181(String userAgent) Test if the client is affected by JDK-8335181.voidnext(io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> next) voidpreShutdown(io.quarkus.runtime.shutdown.ShutdownListener.ShutdownNotification notification) voidshutdown(io.quarkus.runtime.shutdown.ShutdownListener.ShutdownNotification notification)
-
Constructor Details
-
GracefulShutdownFilter
public GracefulShutdownFilter()
-
-
Method Details
-
handle
public void handle(io.vertx.core.http.HttpServerRequest event) - Specified by:
handlein interfaceio.vertx.core.Handler<io.vertx.core.http.HttpServerRequest>
-
isAffectedByJDK8335181
Test if the client is affected by JDK-8335181. Affected clients do not support GOAWAY at all. Fixed in 21.0.8 and 17.0.17 which were released in mid-2025.- Returns:
- true for all Java http clients that are known to be affected, and those where we can't parse the version header
-
preShutdown
public void preShutdown(io.quarkus.runtime.shutdown.ShutdownListener.ShutdownNotification notification) - Specified by:
preShutdownin interfaceio.quarkus.runtime.shutdown.ShutdownListener
-
shutdown
public void shutdown(io.quarkus.runtime.shutdown.ShutdownListener.ShutdownNotification notification) - Specified by:
shutdownin interfaceio.quarkus.runtime.shutdown.ShutdownListener
-
next
public void next(io.vertx.core.Handler<io.vertx.core.http.HttpServerRequest> next)
-