Package io.vertx.mutiny.ext.web.handler
Class TimeoutHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.TimeoutHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>
,PlatformHandler
,Consumer<RoutingContext>
public class TimeoutHandler extends Object implements PlatformHandler, 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 theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<TimeoutHandler>
__TYPE_ARG
static int
DEFAULT_ERRORCODE
The default error codestatic long
DEFAULT_TIMEOUT
The default timeout, in ms
-
Constructor Summary
Constructors Constructor Description TimeoutHandler(io.vertx.ext.web.handler.TimeoutHandler delegate)
TimeoutHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(RoutingContext item)
static TimeoutHandler
create()
static TimeoutHandler
create(long timeout)
static TimeoutHandler
create(long timeout, int errorCode)
boolean
equals(Object o)
io.vertx.ext.web.handler.TimeoutHandler
getDelegate()
void
handle(RoutingContext arg0)
int
hashCode()
static TimeoutHandler
newInstance(io.vertx.ext.web.handler.TimeoutHandler arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<TimeoutHandler> __TYPE_ARG
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUT
The default timeout, in ms- See Also:
- Constant Field Values
-
DEFAULT_ERRORCODE
public static final int DEFAULT_ERRORCODE
The default error code- See Also:
- Constant Field Values
-
-
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()
- Specified by:
getDelegate
in interfacePlatformHandler
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
- Specified by:
handle
in interfacePlatformHandler
-
create
public static TimeoutHandler create()
- Returns:
- the handler
-
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 mserrorCode
-- Returns:
- the handler
-
accept
public void accept(RoutingContext item)
- Specified by:
accept
in interfaceConsumer<RoutingContext>
- Specified by:
accept
in interfacePlatformHandler
-
newInstance
public static TimeoutHandler newInstance(io.vertx.ext.web.handler.TimeoutHandler arg)
-
-