Package io.vertx.mutiny.ext.web.handler
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 MutinyDelegate, 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 the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<TimeoutHandler>
static final int
The default error codestatic final long
The default timeout, in ms -
Constructor Summary
ConstructorsConstructorDescriptionTimeoutHandler
(io.vertx.ext.web.handler.TimeoutHandler delegate) TimeoutHandler
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RoutingContext item) static TimeoutHandler
create()
static TimeoutHandler
create
(long timeout) static TimeoutHandler
create
(long timeout, int errorCode) boolean
io.vertx.ext.web.handler.TimeoutHandler
void
handle
(RoutingContext arg0) int
hashCode()
static TimeoutHandler
newInstance
(io.vertx.ext.web.handler.TimeoutHandler arg) toString()
-
Field Details
-
__TYPE_ARG
-
DEFAULT_TIMEOUT
public static final long DEFAULT_TIMEOUTThe default timeout, in ms- See Also:
-
DEFAULT_ERRORCODE
public static final int DEFAULT_ERRORCODEThe default error code- See Also:
-
-
Constructor Details
-
TimeoutHandler
public TimeoutHandler(io.vertx.ext.web.handler.TimeoutHandler delegate) -
TimeoutHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.TimeoutHandler getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Specified by:
getDelegate
in interfacePlatformHandler
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
- Specified by:
handle
in interfacePlatformHandler
-
create
- Returns:
- the handler
-
create
- Parameters:
timeout
- the timeout, in ms- Returns:
- the handler
-
create
- Parameters:
timeout
- the timeout, in mserrorCode
-- Returns:
- the handler
-
accept
- Specified by:
accept
in interfaceConsumer<RoutingContext>
- Specified by:
accept
in interfacePlatformHandler
-
newInstance
-