Class TimeoutHandler

java.lang.Object
io.vertx.mutiny.ext.web.handler.TimeoutHandler
All Implemented Interfaces:
MutinyDelegate, io.vertx.core.Handler<RoutingContext>, PlatformHandler, Consumer<RoutingContext>

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

Author:
Tim Fox
See Also:
  • TimeoutHandler
  • Field Details

  • Constructor Details

    • TimeoutHandler

      public TimeoutHandler(io.vertx.ext.web.handler.TimeoutHandler delegate)
      Create a new instance of TimeoutHandler delegating to the given (non-null) instance of TimeoutHandler.
    • TimeoutHandler

      public TimeoutHandler(Object delegate)
  • Method Details

    • accept

      public void accept(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      accept in interface Consumer<RoutingContext>
      Specified by:
      accept in interface PlatformHandler
    • handle

      public void handle(RoutingContext item)
      Handle an item. This method is generated from the original method."
      Specified by:
      handle in interface io.vertx.core.Handler<RoutingContext>
      Specified by:
      handle in interface PlatformHandler
    • getDelegate

      public io.vertx.ext.web.handler.TimeoutHandler getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Specified by:
      getDelegate in interface PlatformHandler
      Returns:
      the delegate instance
    • 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
      Returns:
      the handler
    • newInstance

      public static TimeoutHandler newInstance(io.vertx.ext.web.handler.TimeoutHandler delegate)
      Creates a new instance of the TimeoutHandler.
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object