Uses of Interface
io.vertx.core.Handler
-
Packages that use Handler Package Description io.vertx.core io.vertx.core.datagram io.vertx.core.eventbus io.vertx.core.file io.vertx.core.http io.vertx.core.net io.vertx.core.parsetools io.vertx.core.streams -
-
Uses of Handler in io.vertx.core
Methods in io.vertx.core that return Handler Modifier and Type Method Description Handler<Throwable>Context. exceptionHandler()Handler<Throwable>Vertx. exceptionHandler()Methods in io.vertx.core with parameters of type Handler Modifier and Type Method Description default Future<T>Future. andThen(Handler<AsyncResult<T>> handler)Invokes the givenhandlerupon completion.ContextContext. exceptionHandler(Handler<Throwable> handler)Set an exception handler called when the context runs an action throwing an uncaught throwable.VertxVertx. exceptionHandler(Handler<Throwable> handler)Set a default exception handler forContext, set onContext.exceptionHandler(Handler)at creation.static <T> Future<T>Future. future(Handler<Promise<T>> handler)Create a promise and pass it to thehandler, and then returns this future's promise.CompositeFutureCompositeFuture. onComplete(Handler<AsyncResult<CompositeFuture>> handler)default Future<T>Future. onComplete(Handler<? super T> successHandler, Handler<? super Throwable> failureHandler)Add handlers to be notified on succeeded result and failed result.Future<T>Future. onComplete(Handler<AsyncResult<T>> handler)Add a handler to be notified of the result.default CompositeFutureCompositeFuture. onFailure(Handler<? super Throwable> handler)default Future<T>Future. onFailure(Handler<? super Throwable> handler)Add a handler to be notified of the failed result.default CompositeFutureCompositeFuture. onSuccess(Handler<? super CompositeFuture> handler)default Future<T>Future. onSuccess(Handler<? super T> handler)Add a handler to be notified of the succeeded result.voidContext. runOnContext(Handler<Void> action)Run the specified action asynchronously on the same context, some time after the current execution has completed.voidVertx. runOnContext(Handler<Void> action)Puts the handler on the event queue for the current context so it will be run asynchronously ASAP after all preceeding events have been handled.longVertx. setPeriodic(long initialDelay, long delay, Handler<Long> handler)Set a periodic timer to fire everydelaymilliseconds with initial delay, at which pointhandlerwill be called with the id of the timer.default longVertx. setPeriodic(long delay, Handler<Long> handler)Set a periodic timer to fire everydelaymilliseconds, at which pointhandlerwill be called with the id of the timer.longVertx. setTimer(long delay, Handler<Long> handler)Set a one-shot timer to fire afterdelaymilliseconds, at which pointhandlerwill be called with the id of the timer. -
Uses of Handler in io.vertx.core.datagram
Methods in io.vertx.core.datagram with parameters of type Handler Modifier and Type Method Description DatagramSocketDatagramSocket. exceptionHandler(Handler<Throwable> handler)DatagramSocketDatagramSocket. handler(Handler<DatagramPacket> handler) -
Uses of Handler in io.vertx.core.eventbus
Methods in io.vertx.core.eventbus with parameters of type Handler Modifier and Type Method Description <T> EventBusEventBus. addInboundInterceptor(Handler<DeliveryContext<T>> interceptor)Add an interceptor that will be called whenever a message is received by Vert.x<T> EventBusEventBus. addOutboundInterceptor(Handler<DeliveryContext<T>> interceptor)Add an interceptor that will be called whenever a message is sent from Vert.x<T> MessageConsumer<T>EventBus. consumer(MessageConsumerOptions options, Handler<Message<T>> handler)Create a consumer and register it against the specified options address.<T> MessageConsumer<T>EventBus. consumer(String address, Handler<Message<T>> handler)Create a consumer and register it against the specified address.MessageConsumer<T>MessageConsumer. endHandler(Handler<Void> endHandler)MessageConsumer<T>MessageConsumer. exceptionHandler(Handler<Throwable> handler)MessageConsumer<T>MessageConsumer. handler(Handler<Message<T>> handler)<T> MessageConsumer<T>EventBus. localConsumer(String address, Handler<Message<T>> handler)LikeEventBus.consumer(String, Handler)but the address won't be propagated across the cluster.<T> EventBusEventBus. removeInboundInterceptor(Handler<DeliveryContext<T>> interceptor)Remove an interceptor that was added byEventBus.addInboundInterceptor(Handler)<T> EventBusEventBus. removeOutboundInterceptor(Handler<DeliveryContext<T>> interceptor)Remove an interceptor that was added byEventBus.addOutboundInterceptor(Handler) -
Uses of Handler in io.vertx.core.file
Methods in io.vertx.core.file with parameters of type Handler Modifier and Type Method Description AsyncFileAsyncFile. drainHandler(Handler<Void> handler)AsyncFileAsyncFile. endHandler(Handler<Void> endHandler)AsyncFileAsyncFile. exceptionHandler(Handler<Throwable> handler)Set an exception handler on the read stream and on the write stream.AsyncFileAsyncFile. handler(Handler<Buffer> handler) -
Uses of Handler in io.vertx.core.http
Fields in io.vertx.core.http declared as Handler Modifier and Type Field Description static Handler<HttpServerRequest>HttpServerRequest. DEFAULT_INVALID_REQUEST_HANDLERThe default invalid request handler, it uses theHttpServerRequest.decoderResult()cause and the request information to determine the status code of the response to be sent.Methods in io.vertx.core.http that return Handler Modifier and Type Method Description Handler<HttpServerRequest>HttpServer. requestHandler()Handler<ServerWebSocket>HttpServer. webSocketHandler()Methods in io.vertx.core.http with parameters of type Handler Modifier and Type Method Description ClientWebSocketClientWebSocket. binaryMessageHandler(Handler<Buffer> handler)WebSocketWebSocket. binaryMessageHandler(Handler<Buffer> handler)WebSocketBaseWebSocketBase. binaryMessageHandler(Handler<Buffer> handler)Set a binary message handler on the connection.HttpServerResponseHttpServerResponse. bodyEndHandler(Handler<Void> handler)Provides a handler that will be called after the last part of the body is written to the wire.default HttpClientResponseHttpClientResponse. bodyHandler(Handler<Buffer> bodyHandler)Convenience method for receiving the entire request body in one piece.default HttpServerRequestHttpServerRequest. bodyHandler(Handler<Buffer> bodyHandler)Convenience method for receiving the entire request body in one piece.ClientWebSocketClientWebSocket. closeHandler(Handler<Void> handler)HttpConnectionHttpConnection. closeHandler(Handler<Void> handler)Set a close handler.HttpServerResponseHttpServerResponse. closeHandler(Handler<Void> handler)Set a close handler for the response, this is called when the underlying connection is closed and the response was still using the connection.ServerWebSocketServerWebSocket. closeHandler(Handler<Void> handler)WebSocketWebSocket. closeHandler(Handler<Void> handler)WebSocketBaseWebSocketBase. closeHandler(Handler<Void> handler)Set a close handler.HttpServerHttpServer. connectionHandler(Handler<HttpConnection> handler)Set a connection handler for the server.HttpClientRequestHttpClientRequest. continueHandler(Handler<Void> handler)If you send an HTTP request with the headerExpectset to the value100-continueand the server responds with an interim HTTP response with a status code of100and a Continue handler has been set using this method, then thehandlerwill be called.HttpClientResponseHttpClientResponse. customFrameHandler(Handler<HttpFrame> handler)Set an custom frame handler.HttpServerRequestHttpServerRequest. customFrameHandler(Handler<HttpFrame> handler)Set a custom frame handler.ClientWebSocketClientWebSocket. drainHandler(Handler<Void> handler)HttpClientRequestHttpClientRequest. drainHandler(Handler<Void> handler)HttpServerResponseHttpServerResponse. drainHandler(Handler<Void> handler)ServerWebSocketServerWebSocket. drainHandler(Handler<Void> handler)WebSocketWebSocket. drainHandler(Handler<Void> handler)WebSocketBaseWebSocketBase. drainHandler(Handler<Void> handler)HttpClientRequestHttpClientRequest. earlyHintsHandler(Handler<MultiMap> handler)If the server responds with an interim HTTP response with a status code of103and a Early Hints handler has been set using this method, then thehandlerwill be called.ClientWebSocketClientWebSocket. endHandler(Handler<Void> endHandler)HttpClientResponseHttpClientResponse. endHandler(Handler<Void> endHandler)HttpServerFileUploadHttpServerFileUpload. endHandler(Handler<Void> endHandler)HttpServerRequestHttpServerRequest. endHandler(Handler<Void> endHandler)HttpServerResponseHttpServerResponse. endHandler(Handler<Void> handler)Set an end handler for the response.ServerWebSocketServerWebSocket. endHandler(Handler<Void> endHandler)WebSocketWebSocket. endHandler(Handler<Void> endHandler)WebSocketBaseWebSocketBase. endHandler(Handler<Void> endHandler)ClientWebSocketClientWebSocket. exceptionHandler(Handler<Throwable> handler)HttpClientRequestHttpClientRequest. exceptionHandler(Handler<Throwable> handler)HttpClientResponseHttpClientResponse. exceptionHandler(Handler<Throwable> handler)HttpConnectionHttpConnection. exceptionHandler(Handler<Throwable> handler)Set an handler called when a connection error happensHttpServerHttpServer. exceptionHandler(Handler<Throwable> handler)Set an exception handler called for socket errors happening before the HTTP connection is established, e.g during the TLS handshake.HttpServerFileUploadHttpServerFileUpload. exceptionHandler(Handler<Throwable> handler)HttpServerRequestHttpServerRequest. exceptionHandler(Handler<Throwable> handler)HttpServerResponseHttpServerResponse. exceptionHandler(Handler<Throwable> handler)ServerWebSocketServerWebSocket. exceptionHandler(Handler<Throwable> handler)WebSocketWebSocket. exceptionHandler(Handler<Throwable> handler)WebSocketBaseWebSocketBase. exceptionHandler(Handler<Throwable> handler)ClientWebSocketClientWebSocket. frameHandler(Handler<WebSocketFrame> handler)ServerWebSocketServerWebSocket. frameHandler(Handler<WebSocketFrame> handler)WebSocketWebSocket. frameHandler(Handler<WebSocketFrame> handler)WebSocketBaseWebSocketBase. frameHandler(Handler<WebSocketFrame> handler)Set a frame handler on the connection.HttpConnectionHttpConnection. goAwayHandler(Handler<GoAway> handler)Set an handler called when a GOAWAY frame is received.ClientWebSocketClientWebSocket. handler(Handler<Buffer> handler)HttpClientResponseHttpClientResponse. handler(Handler<Buffer> handler)HttpServerFileUploadHttpServerFileUpload. handler(Handler<Buffer> handler)HttpServerRequestHttpServerRequest. handler(Handler<Buffer> handler)ServerWebSocketServerWebSocket. handler(Handler<Buffer> handler)WebSocketWebSocket. handler(Handler<Buffer> handler)WebSocketBaseWebSocketBase. handler(Handler<Buffer> handler)HttpServerResponseHttpServerResponse. headersEndHandler(Handler<Void> handler)Provide a handler that will be called just before the headers are written to the wire.HttpServerHttpServer. invalidRequestHandler(Handler<HttpServerRequest> handler)Set ahandlerfor handling invalid requests.HttpConnectionHttpConnection. pingHandler(Handler<Buffer> handler)Set an handler notified when a PING frame is received from the remote endpoint.ClientWebSocketClientWebSocket. pongHandler(Handler<Buffer> handler)WebSocketWebSocket. pongHandler(Handler<Buffer> handler)WebSocketBaseWebSocketBase. pongHandler(Handler<Buffer> handler)Set a pong frame handler on the connection.HttpClientRequestHttpClientRequest. pushHandler(Handler<HttpClientRequest> handler)Set a push handler for this request.HttpConnectionHttpConnection. remoteSettingsHandler(Handler<Http2Settings> handler)Set an handler that is called when remote endpointHttp2Settingsare updated.HttpServerHttpServer. requestHandler(Handler<HttpServerRequest> handler)Set the request handler for the server torequestHandler.HttpConnectionHttpConnection. shutdownHandler(Handler<Void> handler)Set ahandlernotified when the HTTP connection is shutdown: the client or server will close the connection within a certain amount of time.WebSocketWebSocket. shutdownHandler(Handler<Void> handler)WebSocketBaseWebSocketBase. shutdownHandler(Handler<Void> handler)Set ahandlernotified when the WebSocket is shutdown: the client or server will close the connection within a certain amount of time.HttpClientResponseHttpClientResponse. streamPriorityHandler(Handler<StreamPriority> handler)Set an handler for stream priority changes.HttpServerRequestHttpServerRequest. streamPriorityHandler(Handler<StreamPriority> handler)Set an handler for stream priority changesClientWebSocketClientWebSocket. textMessageHandler(Handler<String> handler)WebSocketWebSocket. textMessageHandler(Handler<String> handler)WebSocketBaseWebSocketBase. textMessageHandler(Handler<String> handler)Set a text message handler on the connection.HttpServerRequestHttpServerRequest. uploadHandler(Handler<HttpServerFileUpload> uploadHandler)Set an upload handler.HttpServerHttpServer. webSocketHandler(Handler<ServerWebSocket> handler)Set the WebSocket handler for the server towsHandler.HttpServerHttpServer. webSocketHandshakeHandler(Handler<ServerWebSocketHandshake> handler)Set a handler for WebSocket handshake.HttpClientBuilderHttpClientBuilder. withConnectHandler(Handler<HttpConnection> handler)Set a connection handler for the client. -
Uses of Handler in io.vertx.core.net
Methods in io.vertx.core.net that return Handler Modifier and Type Method Description Handler<NetSocket>NetServer. connectHandler()Methods in io.vertx.core.net with parameters of type Handler Modifier and Type Method Description NetSocketNetSocket. closeHandler(Handler<Void> handler)Set ahandlernotified when the socket is closedNetServerNetServer. connectHandler(Handler<NetSocket> handler)Supply a connect handler for this server.NetSocketNetSocket. drainHandler(Handler<Void> handler)NetSocketNetSocket. endHandler(Handler<Void> endHandler)Set an end handler.NetServerNetServer. exceptionHandler(Handler<Throwable> handler)Set an exception handler called for socket errors happening before the connection is passed to theNetServer.connectHandler(io.vertx.core.Handler<io.vertx.core.net.NetSocket>), e.g during the TLS handshake.NetSocketNetSocket. exceptionHandler(Handler<Throwable> handler)NetSocketNetSocket. handler(Handler<Buffer> handler)NetSocketNetSocket. shutdownHandler(Handler<Void> handler)Set ahandlernotified when the socket is shutdown: the client or server will close the connection within a certain amount of time. -
Uses of Handler in io.vertx.core.parsetools
Subinterfaces of Handler in io.vertx.core.parsetools Modifier and Type Interface Description interfaceJsonParserA parser class which allows to incrementally parse json elements and emit json parse events instead of parsing a json element fully.interfaceRecordParserA helper class which allows you to easily parse protocols which are delimited by a sequence of bytes, or fixed size records.Methods in io.vertx.core.parsetools with parameters of type Handler Modifier and Type Method Description JsonParserJsonParser. endHandler(Handler<Void> endHandler)RecordParserRecordParser. endHandler(Handler<Void> endHandler)JsonParserJsonParser. exceptionHandler(Handler<Throwable> handler)RecordParserRecordParser. exceptionHandler(Handler<Throwable> handler)JsonParserJsonParser. handler(Handler<JsonEvent> handler)RecordParserRecordParser. handler(Handler<Buffer> handler)static RecordParserRecordParser. newDelimited(Buffer delim, Handler<Buffer> output)LikeRecordParser.newDelimited(Buffer)but set theoutputthat will receive whole records which have been parsed.static RecordParserRecordParser. newDelimited(String delim, Handler<Buffer> output)LikeRecordParser.newDelimited(String)but set theoutputthat will receive whole records which have been parsed.static RecordParserRecordParser. newFixed(int size, Handler<Buffer> output)LikeRecordParser.newFixed(int)but set theoutputthat will receive whole records which have been parsed.voidRecordParser. setOutput(Handler<Buffer> output) -
Uses of Handler in io.vertx.core.streams
Methods in io.vertx.core.streams with parameters of type Handler Modifier and Type Method Description WriteStream<T>WriteStream. drainHandler(Handler<Void> handler)Set a drain handler on the stream.ReadStream<T>ReadStream. endHandler(Handler<Void> endHandler)Set an end handler.ReadStream<T>ReadStream. exceptionHandler(Handler<Throwable> handler)Set an exception handler on the read stream.StreamBaseStreamBase. exceptionHandler(Handler<Throwable> handler)Set an exception handler.WriteStream<T>WriteStream. exceptionHandler(Handler<Throwable> handler)Set an exception handler on the write stream.ReadStream<T>ReadStream. handler(Handler<T> handler)Set a data handler.
-