Package: io.vertx.groovy.ext.web.handler

## [Groovy] Class TimeoutHandler

- io.vertx.groovy.ext.web.handler.TimeoutHandler

- All Implemented Interfaces and Traits:
    io.vertx.core.Handler

      @groovy.transform.CompileStatic
      class TimeoutHandler
      extends java.lang.Object

  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`.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `TimeoutHandler (java.lang.Object delegate)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `static TimeoutHandler` | `create()` Create a handler
    `static TimeoutHandler` | `create(long timeout)` Create a handler
    `static TimeoutHandler` | `create(long timeout, int errorCode)` Create a handler
    `java.lang.Object` | `getDelegate()`
    `void` | `handle(RoutingContext arg0)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Constructor Detail

    - #### TimeoutHandler(java.lang.Object delegate)

  - ### Method Detail

    - #### static TimeoutHandler create()

      Create a handler

      Returns:
        the handler

    - #### static TimeoutHandler create(long timeout)

      Create a handler

      Returns:
        the handler
      Parameters:
        `timeout` - the timeout, in ms

    - #### static TimeoutHandler create(long timeout, int errorCode)

      Create a handler

      Returns:
        the handler
      Parameters:
        `timeout` - the timeout, in ms
        errorCode

    - #### java.lang.Object getDelegate()

    - #### void handle(RoutingContext arg0)