public class TimeoutHandler extends Object implements PlatformHandler, Handler<RoutingContext>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.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(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) |
TimeoutHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static TimeoutHandler |
newInstance(TimeoutHandler arg) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<TimeoutHandler> __TYPE_ARG
public static final long DEFAULT_TIMEOUT
public static final int DEFAULT_ERRORCODE
public TimeoutHandler(TimeoutHandler delegate)
public TimeoutHandler(Object delegate)
public TimeoutHandler getDelegate()
getDelegate
in interface PlatformHandler
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
handle
in interface PlatformHandler
event
- 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(TimeoutHandler arg)
Copyright © 2024 Eclipse. All rights reserved.