Uses of Interface
io.vertx.core.Handler
Packages that use Handler
Package
Description
-
Uses of Handler in io.vertx.core
Methods in io.vertx.core that return HandlerMethods in io.vertx.core with parameters of type HandlerModifier and TypeMethodDescriptionFuture.andThen(Handler<AsyncResult<T>> handler) Invokes the givenhandlerupon completion.Context.exceptionHandler(Handler<Throwable> handler) Set an exception handler called when the context runs an action throwing an uncaught throwable.Vertx.exceptionHandler(Handler<Throwable> handler) Set a default exception handler forContext, set onContext.exceptionHandler(Handler)at creation.static <T> Future<T> Create a promise and pass it to thehandler, and then returns this future's promise.CompositeFuture.onComplete(Handler<AsyncResult<CompositeFuture>> handler) Future.onComplete(Handler<? super T> successHandler, Handler<? super Throwable> failureHandler) Add handlers to be notified on succeeded result and failed result.Future.onComplete(Handler<AsyncResult<T>> handler) Add a handler to be notified of the result.default CompositeFutureAdd a handler to be notified of the failed result.default CompositeFutureCompositeFuture.onSuccess(Handler<? super CompositeFuture> 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.longSet 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 HandlerModifier and TypeMethodDescriptionDatagramSocket.exceptionHandler(Handler<Throwable> handler) DatagramSocket.handler(Handler<DatagramPacket> handler) -
Uses of Handler in io.vertx.core.eventbus
Methods in io.vertx.core.eventbus with parameters of type HandlerModifier and TypeMethodDescription<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> Create a consumer and register it against the specified address.MessageConsumer.endHandler(Handler<Void> endHandler) MessageConsumer.exceptionHandler(Handler<Throwable> 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 HandlerModifier and TypeMethodDescriptionAsyncFile.drainHandler(Handler<Void> handler) AsyncFile.endHandler(Handler<Void> endHandler) AsyncFile.exceptionHandler(Handler<Throwable> handler) Set an exception handler on the read stream and on the write stream. -
Uses of Handler in io.vertx.core.http
Fields in io.vertx.core.http declared as HandlerModifier and TypeFieldDescriptionstatic final 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 HandlerMethods in io.vertx.core.http with parameters of type HandlerModifier and TypeMethodDescriptionClientWebSocket.binaryMessageHandler(Handler<Buffer> handler) WebSocket.binaryMessageHandler(Handler<Buffer> handler) WebSocketBase.binaryMessageHandler(Handler<Buffer> handler) Set a binary message handler on the connection.HttpServerResponse.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.ClientWebSocket.closeHandler(Handler<Void> handler) HttpConnection.closeHandler(Handler<Void> handler) Set a close handler.HttpServerResponse.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.ServerWebSocket.closeHandler(Handler<Void> handler) WebSocket.closeHandler(Handler<Void> handler) WebSocketBase.closeHandler(Handler<Void> handler) Set a close handler.HttpServer.connectionHandler(Handler<HttpConnection> handler) Set a connection handler for the server.HttpClientRequest.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.HttpClientResponse.customFrameHandler(Handler<HttpFrame> handler) Set an custom frame handler.HttpServerRequest.customFrameHandler(Handler<HttpFrame> handler) Set a custom frame handler.ClientWebSocket.drainHandler(Handler<Void> handler) HttpClientRequest.drainHandler(Handler<Void> handler) HttpServerResponse.drainHandler(Handler<Void> handler) ServerWebSocket.drainHandler(Handler<Void> handler) WebSocket.drainHandler(Handler<Void> handler) WebSocketBase.drainHandler(Handler<Void> handler) HttpClientRequest.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.ClientWebSocket.endHandler(Handler<Void> endHandler) HttpClientResponse.endHandler(Handler<Void> endHandler) HttpServerFileUpload.endHandler(Handler<Void> endHandler) HttpServerRequest.endHandler(Handler<Void> endHandler) HttpServerResponse.endHandler(Handler<Void> handler) Set an end handler for the response.ServerWebSocket.endHandler(Handler<Void> endHandler) WebSocket.endHandler(Handler<Void> endHandler) WebSocketBase.endHandler(Handler<Void> endHandler) ClientWebSocket.exceptionHandler(Handler<Throwable> handler) HttpClientRequest.exceptionHandler(Handler<Throwable> handler) HttpClientResponse.exceptionHandler(Handler<Throwable> handler) HttpConnection.exceptionHandler(Handler<Throwable> handler) Set an handler called when a connection error happensHttpServer.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.HttpServerFileUpload.exceptionHandler(Handler<Throwable> handler) HttpServerRequest.exceptionHandler(Handler<Throwable> handler) HttpServerResponse.exceptionHandler(Handler<Throwable> handler) ServerWebSocket.exceptionHandler(Handler<Throwable> handler) WebSocket.exceptionHandler(Handler<Throwable> handler) WebSocketBase.exceptionHandler(Handler<Throwable> handler) ClientWebSocket.frameHandler(Handler<WebSocketFrame> handler) ServerWebSocket.frameHandler(Handler<WebSocketFrame> handler) WebSocket.frameHandler(Handler<WebSocketFrame> handler) WebSocketBase.frameHandler(Handler<WebSocketFrame> handler) Set a frame handler on the connection.HttpConnection.goAwayHandler(Handler<GoAway> handler) Set an handler called when a GOAWAY frame is received.HttpServerResponse.headersEndHandler(Handler<Void> handler) Provide a handler that will be called just before the headers are written to the wire.HttpServer.invalidRequestHandler(Handler<HttpServerRequest> handler) Set ahandlerfor handling invalid requests.HttpConnection.pingHandler(Handler<Buffer> handler) Set an handler notified when a PING frame is received from the remote endpoint.ClientWebSocket.pongHandler(Handler<Buffer> handler) WebSocket.pongHandler(Handler<Buffer> handler) WebSocketBase.pongHandler(Handler<Buffer> handler) Set a pong frame handler on the connection.HttpClientRequest.pushHandler(Handler<HttpClientRequest> handler) Set a push handler for this request.HttpConnection.remoteSettingsHandler(Handler<HttpSettings> handler) Set an handler that is called when remote endpointHttpSettingsare updated.HttpServer.requestHandler(Handler<HttpServerRequest> handler) Set the request handler for the server torequestHandler.HttpConnection.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.WebSocket.shutdownHandler(Handler<Void> handler) WebSocketBase.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.HttpClientResponse.streamPriorityHandler(Handler<StreamPriority> handler) Set an handler for stream priority changes.HttpServerRequest.streamPriorityHandler(Handler<StreamPriority> handler) Set an handler for stream priority changesClientWebSocket.textMessageHandler(Handler<String> handler) WebSocket.textMessageHandler(Handler<String> handler) WebSocketBase.textMessageHandler(Handler<String> handler) Set a text message handler on the connection.HttpServerRequest.uploadHandler(Handler<HttpServerFileUpload> uploadHandler) Set an upload handler.HttpServer.webSocketHandler(Handler<ServerWebSocket> handler) Set the WebSocket handler for the server towsHandler.HttpServer.webSocketHandshakeHandler(Handler<ServerWebSocketHandshake> handler) Set a handler for WebSocket handshake.HttpClientBuilder.withConnectHandler(Handler<HttpConnection> handler) Set a connection handler for the client.HttpServerBuilder.withConnectHandler(Handler<HttpConnection> handler) Set a connection handler for the server. -
Uses of Handler in io.vertx.core.net
Methods in io.vertx.core.net that return HandlerMethods in io.vertx.core.net with parameters of type HandlerModifier and TypeMethodDescriptionNetSocket.closeHandler(Handler<Void> handler) Set ahandlernotified when the socket is closedQuicConnection.closeHandler(Handler<Void> handler) Set a handler called when the connection is closed.QuicStream.closeHandler(Handler<Void> handler) Set a handler called when the stream is closed.StreamChannel.closeHandler(Handler<Void> handler) Set ahandlernotified when the channel is closedNetServer.connectHandler(Handler<NetSocket> handler) Supply a connect handler for this server.QuicServer.connectHandler(Handler<QuicConnection> handler) Set the handler processingQuicConnection, the handler must be set before the server is bound.QuicConnection.datagramHandler(Handler<Buffer> handler) Set a handler called with the datagram addressed to this connection.NetSocket.drainHandler(Handler<Void> handler) QuicStream.drainHandler(Handler<Void> handler) StreamChannel.drainHandler(Handler<Void> handler) NetSocket.endHandler(Handler<Void> endHandler) Set an end handler.QuicStream.endHandler(Handler<Void> endHandler) StreamChannel.endHandler(Handler<Void> endHandler) Set an end handler.NetServer.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.NetSocket.exceptionHandler(Handler<Throwable> handler) QuicServer.exceptionHandler(Handler<Throwable> handler) Set an exception handler called for socket errors happening before the QUIC connection is established, e.g. during the TLS handshake.QuicStream.exceptionHandler(Handler<Throwable> handler) Set an exception handling, catching stream exceptions.StreamChannel.exceptionHandler(Handler<Throwable> handler) Set the handler signaled with the data events the remote peer has sent.QuicStream.resetHandler(Handler<Long> handler) Set a handler called upon stream reset: when a stream receives a reset frame from its peer, this handler is called.NetSocket.shutdownHandler(Handler<Duration> handler) Set ahandlernotified when the socket is shutdown: the client or server will close the connection within a certain amount of time.QuicConnection.shutdownHandler(Handler<Duration> handler) Set ahandlernotified when the connection is shutdown: the client or server will close the connection within a certain amount of time.QuicStream.shutdownHandler(Handler<Duration> handler) Set a handler called when the stream is shutdown or closedStreamChannel.shutdownHandler(Handler<Duration> handler) Set ahandlernotified when the channel is shutdown: the client or server will close the connection within a certain amount of time.QuicConnection.streamHandler(Handler<QuicStream> handler) Set a handler processing incoming Quic streams.default QuicServerQuicServer.streamHandler(Handler<QuicStream> handler) Set a handler processing incoming Quic streams, this is a short-cut ofserver.connectHandler(connection -> connection.streamHandler(stream)). -
Uses of Handler in io.vertx.core.parsetools
Subinterfaces of Handler in io.vertx.core.parsetoolsModifier and TypeInterfaceDescriptioninterfaceA parser class which allows to incrementally parse json elements and emit json parse events instead of parsing a json element fully.interfaceA 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 HandlerModifier and TypeMethodDescriptionJsonParser.endHandler(Handler<Void> endHandler) RecordParser.endHandler(Handler<Void> endHandler) JsonParser.exceptionHandler(Handler<Throwable> handler) RecordParser.exceptionHandler(Handler<Throwable> 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 RecordParserLikeRecordParser.newFixed(int)but set theoutputthat will receive whole records which have been parsed.void -
Uses of Handler in io.vertx.core.streams
Methods in io.vertx.core.streams with parameters of type HandlerModifier and TypeMethodDescriptionWriteStream.drainHandler(Handler<Void> handler) Set a drain handler on the stream.ReadStream.endHandler(Handler<Void> endHandler) Set an end handler.ReadStream.exceptionHandler(Handler<Throwable> handler) Set an exception handler on the read stream.StreamBase.exceptionHandler(Handler<Throwable> handler) Set an exception handler.WriteStream.exceptionHandler(Handler<Throwable> handler) Set an exception handler on the write stream.Set a data handler.