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 intThe default error codestatic final longThe default timeout, in ms -
Constructor Summary
ConstructorsConstructorDescriptionTimeoutHandler(io.vertx.ext.web.handler.TimeoutHandler delegate) TimeoutHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) static TimeoutHandlercreate()static TimeoutHandlercreate(long timeout) static TimeoutHandlercreate(long timeout, int errorCode) booleanio.vertx.ext.web.handler.TimeoutHandlervoidhandle(RoutingContext arg0) inthashCode()static TimeoutHandlernewInstance(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:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfacePlatformHandler- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>- Specified by:
handlein 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:
acceptin interfaceConsumer<RoutingContext>- Specified by:
acceptin interfacePlatformHandler
-
newInstance
-