Class TimeoutHandler

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

    public class TimeoutHandler
    extends Object
    implements PlatformHandler, io.vertx.core.Handler<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 RX-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

      • hashCode

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

        public io.vertx.ext.web.handler.TimeoutHandler getDelegate()
        Specified by:
        getDelegate in interface PlatformHandler
      • handle

        public void handle​(RoutingContext event)
        Something has happened, so handle it.
        Specified by:
        handle in interface io.vertx.core.Handler<RoutingContext>
        Specified by:
        handle in interface PlatformHandler
        Parameters:
        event - the event to handle
      • create

        public static TimeoutHandler create()
        Create a handler
        Returns:
        the handler
      • create

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

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

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