Class TimeoutHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>

    public class TimeoutHandler
    extends Object
    implements io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
    Handler that will timeout requests if the response has not been written after a certain time. Timeout requests will be ended with an HTTP status code `503`.

    NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

    • Constructor Detail

      • TimeoutHandler

        public TimeoutHandler​(io.vertx.ext.web.handler.TimeoutHandler delegate)
      • TimeoutHandler

        public TimeoutHandler​(Object delegate)
    • Method Detail

      • getDelegate

        public io.vertx.ext.web.handler.TimeoutHandler getDelegate()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • create

        public static TimeoutHandler create​(long timeout)
        Parameters:
        timeout - the timeout, in ms
        Returns:
        the handler
      • create

        public static TimeoutHandler create​(long timeout,
                                            int errorCode)
        Parameters:
        timeout - the timeout, in ms
        errorCode -
        Returns:
        the handler
      • newInstance

        public static TimeoutHandler newInstance​(io.vertx.ext.web.handler.TimeoutHandler arg)