public class TimeoutHandler extends Object implements PlatformHandler, io.vertx.core.Handler<RoutingContext>
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<TimeoutHandler> |
__TYPE_ARG |
static int |
DEFAULT_ERRORCODE
The default error code
|
static long |
DEFAULT_TIMEOUT
The default timeout, in ms
|
| Constructor and Description |
|---|
TimeoutHandler(Object delegate) |
TimeoutHandler(io.vertx.ext.web.handler.TimeoutHandler delegate) |
| Modifier and Type | Method 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
|
boolean |
equals(Object o) |
io.vertx.ext.web.handler.TimeoutHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static TimeoutHandler |
newInstance(io.vertx.ext.web.handler.TimeoutHandler arg) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnewInstancepublic static final TypeArg<TimeoutHandler> __TYPE_ARG
public static final long DEFAULT_TIMEOUT
public static final int DEFAULT_ERRORCODE
public TimeoutHandler(io.vertx.ext.web.handler.TimeoutHandler delegate)
public TimeoutHandler(Object delegate)
public io.vertx.ext.web.handler.TimeoutHandler getDelegate()
getDelegate in interface PlatformHandlerpublic void handle(RoutingContext event)
handle in interface io.vertx.core.Handler<RoutingContext>handle in interface PlatformHandlerevent - the event to handlepublic static TimeoutHandler create()
public static TimeoutHandler create(long timeout)
timeout - the timeout, in mspublic static TimeoutHandler create(long timeout, int errorCode)
timeout - the timeout, in mserrorCode - public static TimeoutHandler newInstance(io.vertx.ext.web.handler.TimeoutHandler arg)
Copyright © 2022 Eclipse. All rights reserved.