Class TimeoutHandler
java.lang.Object
io.vertx.reactivex.ext.web.handler.TimeoutHandler
- All Implemented Interfaces:
Handler<RoutingContext>, io.vertx.lang.rx.RxDelegate, PlatformHandler
public class TimeoutHandler
extends Object
implements io.vertx.lang.rx.RxDelegate, PlatformHandler, Handler<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 RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<TimeoutHandler> static final intThe default error codestatic final longThe default timeout, in ms -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeoutHandlercreate()Create a handlerstatic TimeoutHandlercreate(long timeout) Create a handlerstatic TimeoutHandlercreate(long timeout, int errorCode) Create a handlerbooleanvoidhandle(RoutingContext event) Something has happened, so handle it.inthashCode()static TimeoutHandlertoString()
-
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
-
TimeoutHandler
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfacePlatformHandler- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
handle
Something has happened, so handle it.- Specified by:
handlein interfaceHandler<RoutingContext>- Specified by:
handlein interfacePlatformHandler- Parameters:
event- the event to handle
-
create
-
create
Create a handler- Parameters:
timeout- the timeout, in ms- Returns:
- the handler
-
create
Create a handler- Parameters:
timeout- the timeout, in mserrorCode-- Returns:
- the handler
-
newInstance
-