Uses of Interface
io.vertx.core.Future
Packages that use Future
Package
Description
-
Uses of Future in io.vertx.core
Subinterfaces of Future in io.vertx.coreModifier and TypeInterfaceDescriptioninterfaceThe composite future wraps a list offutures, it is useful when several futures needs to be coordinated.interfaceA timer task that can be used as a future.Methods in io.vertx.core that return FutureModifier and TypeMethodDescriptionFuture.andThen(Completable<? super T> handler) Invokes the givenhandlerupon completion.Future.andThen(Handler<AsyncResult<T>> handler) Invokes the givenhandlerupon completion.VertxBuilder.buildClustered()Creates a clustered instance.Vertx.close()Stop the Vertx instance and release any resources held by it.WorkerExecutor.close()Close the executor.Vertx.clusteredVertx(VertxOptions options) Creates a clustered instance using the specified options.default <U> Future<U> Compose this future with amapperfunction.<U> Future<U> Future.compose(Function<? super T, Future<U>> successMapper, Function<Throwable, Future<U>> failureMapper) Compose this future with asuccessMapperandfailureMapperfunctions.final Future<?> Future<?> Start the deployable.final Future<?> Vertx.deployVerticle(Deployable verticle) Deploy a verticle instance that you have created yourself.Vertx.deployVerticle(Deployable verticle, DeploymentOptions options) LikeVertx.deployVerticle(Deployable)butDeploymentOptionsare provided to configure the deployment.Vertx.deployVerticle(Class<? extends Deployable> verticleClass, DeploymentOptions options) LikeVertx.deployVerticle(Deployable, DeploymentOptions)butDeployableinstance is created by invoking the default constructor ofverticleClass.Vertx.deployVerticle(String name) Deploy a verticle instance given a name.Vertx.deployVerticle(String name, DeploymentOptions options) LikeVertx.deployVerticle(Deployable)butDeploymentOptionsare provided to configure the deployment.Vertx.deployVerticle(Supplier<? extends Deployable> supplier, DeploymentOptions options) LikeVertx.deployVerticle(Deployable, DeploymentOptions)butDeployableinstance is created by invoking theverticleSupplier.Future.eventually(Supplier<Future<U>> mapper) Compose this future with amapperthat will be always be called.default <T> Future<T> Context.executeBlocking(Callable<T> blockingCodeHandler) InvokeContext.executeBlocking(Callable, boolean)with order = true.<T> Future<T> Context.executeBlocking(Callable<T> blockingCodeHandler, boolean ordered) Safely execute some blocking code.default <T> Future<T> Vertx.executeBlocking(Callable<T> blockingCodeHandler) LikeVertx.executeBlocking(Callable, boolean)called with ordered = true.default <T> Future<T> Vertx.executeBlocking(Callable<T> blockingCodeHandler, boolean ordered) Safely execute some blocking code.default <T> Future<T> WorkerExecutor.executeBlocking(Callable<T> blockingCodeHandler) LikeWorkerExecutor.executeBlocking(Callable, boolean)called with ordered = true.<T> Future<T> WorkerExecutor.executeBlocking(Callable<T> blockingCodeHandler, boolean ordered) Safely execute some blocking code.Future.expecting(Expectation<? super T> expectation) Guard the control flow of this future with an expectation.static <T> Future<T> Future.failedFuture(String failureMessage) Create a failed future with the specified failure message.static <T> Future<T> Future.failedFuture(Throwable t) Create a failed future with the specified failure cause.default <U> Future<U> Alias forcompose(Function).static <T> Future<T> Future.fromCompletionStage(CompletionStage<T> completionStage) Bridges aCompletionStageobject to a Vert.x future instance.static <T> Future<T> Future.fromCompletionStage(CompletionStage<T> completionStage, Context context) Bridges aCompletionStageobject to a Vert.x future instance.static <T> Future<T> Create a promise and pass it to thehandler, and then returns this future's promise.Promise.future()<U> Future<U> Apply amapperfunction on this future.<V> Future<V> Future.map(V value) Map the result of a future to a specificvalue.default <V> Future<V> Future.mapEmpty()Map the result of a future tonull.Future.onComplete(Completable<? super T> handler) Add handlers to be notified on succeeded result and failed result.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.Add a handler to be notified of the failed result.Add a handler to be notified of the succeeded result.Apply amapperfunction on this future.Map the failure of a future to a specificvalue.Future.otherwiseEmpty()Map the failure of a future tonull.Handles a failure of this Future by returning the result of another Future.Future<?> VerticleBase.start()Start the verticle.Future<?> VerticleBase.stop()Stop the verticle.static <T> Future<T> Future.succeededFuture()Create a succeeded future with a null resultstatic <T> Future<T> Future.succeededFuture(T result) Created a succeeded future with the specified result.Returns a future succeeded or failed with the outcome of this future when it happens before the timeout fires.default <U> Future<U> Future.transform(BiFunction<? super T, ? super Throwable, Future<U>> mapper) Transform this future with amapperfunction.<U> Future<U> Future.transform(Function<AsyncResult<T>, Future<U>> mapper) Transform this future with amapperfunction.final Future<?> default Future<?> Stop the deployable.final Future<?> Undeploy a verticle deployment.Methods in io.vertx.core with parameters of type FutureModifier and TypeMethodDescriptionstatic CompositeFutureLikeall(Future, Future)but with a variable number of futures.static CompositeFutureReturn a composite future, succeeded when all futures are succeeded, failed when any future is failed.static CompositeFutureLikeall(Future, Future)but with 3 futures.static CompositeFutureLikeall(Future, Future)but with 4 futures.static CompositeFutureLikeall(Future, Future)but with 5 futures.static CompositeFutureLikeall(Future, Future)but with 6 futures.static CompositeFutureLikeany(Future, Future)but with a variable number of futures.static CompositeFutureReturn a composite future, succeeded when any futures is succeeded, failed when all futures are failed.static CompositeFutureLikeany(Future, Future)but with 3 futures.static CompositeFutureLikeany(Future, Future)but with 4 futures.static CompositeFutureLikeany(Future, Future)but with 5 futures.static CompositeFutureLikeany(Future, Future)but with 6 futures.static <T> TCallsawait()onfuture.static CompositeFutureLikejoin(Future, Future)but with a variable number of futures.static CompositeFutureReturn a composite future, succeeded when all futures are succeeded, failed when any future is failed.static CompositeFutureLikejoin(Future, Future)but with 3 futures.static CompositeFutureLikejoin(Future, Future)but with 4 futures.static CompositeFutureLikejoin(Future, Future)but with 5 futures.static CompositeFutureLikejoin(Future, Future)but with 6 futures.Method parameters in io.vertx.core with type arguments of type FutureModifier and TypeMethodDescriptionstatic CompositeFutureLikeall(Future, Future)but with a list of futures.static CompositeFutureLikeany(Future, Future)but with a list of futures.default <U> Future<U> Compose this future with amapperfunction.<U> Future<U> Future.compose(Function<? super T, Future<U>> successMapper, Function<Throwable, Future<U>> failureMapper) Compose this future with asuccessMapperandfailureMapperfunctions.Future.eventually(Supplier<Future<U>> mapper) Compose this future with amapperthat will be always be called.default <U> Future<U> Alias forcompose(Function).static CompositeFutureLikejoin(Future, Future)but with a list of futures.Handles a failure of this Future by returning the result of another Future.default <U> Future<U> Future.transform(BiFunction<? super T, ? super Throwable, Future<U>> mapper) Transform this future with amapperfunction.<U> Future<U> Future.transform(Function<AsyncResult<T>, Future<U>> mapper) Transform this future with amapperfunction. -
Uses of Future in io.vertx.core.datagram
Methods in io.vertx.core.datagram that return FutureModifier and TypeMethodDescriptionDatagramSocket.blockMulticastGroup(String multicastAddress, String sourceToBlock) Block the given address for the given multicast address and notifies theHandleronce the operation completes.DatagramSocket.blockMulticastGroup(String multicastAddress, String networkInterface, String sourceToBlock) Block the given address for the given multicast address on the given network interface and notifies theHandleronce the operation completes.DatagramSocket.close()Closes theDatagramSocketimplementation asynchronous and notifies the handler once done.Start listening on the given port and host.DatagramSocket.listenMulticastGroup(String multicastAddress) Joins a multicast group and listens for packets send to it.DatagramSocket.listenMulticastGroup(String multicastAddress, String networkInterface, String source) Joins a multicast group and listens for packets send to it on the given network interface.Write the givenBufferto theSocketAddress.Write the givenStringto theSocketAddressusing UTF8 encoding.Write the givenStringto theSocketAddressusing the given encoding.DatagramSocket.unlistenMulticastGroup(String multicastAddress) Leaves a multicast group and stops listening for packets send to it.DatagramSocket.unlistenMulticastGroup(String multicastAddress, String networkInterface, String source) Leaves a multicast group and stops listening for packets send to it on the given network interface. -
Uses of Future in io.vertx.core.dns
Methods in io.vertx.core.dns that return FutureModifier and TypeMethodDescriptionDnsClient.close()Close the client.Try to lookup the A (ipv4) or AAAA (ipv6) record for the given name.Try to lookup the A (ipv4) record for the given name.Try to lookup the AAAA (ipv6) record for the given name.Try to resolve all A (ipv4) records for the given name.DnsClient.resolveAAAA(String name) Try to resolve all AAAA (ipv6) records for the given name.DnsClient.resolveCNAME(String name) Try to resolve the CNAME record for the given name.Try to resolve the MX records for the given name.Try to resolve the NS records for the given name.DnsClient.resolvePTR(String name) Try to resolve the PTR record for the given name.DnsClient.resolveSRV(String name) Try to resolve the SRV records for the given name.DnsClient.resolveTXT(String name) Try to resolve the TXT records for the given name.DnsClient.reverseLookup(String ipaddress) Try to do a reverse lookup of an IP address. -
Uses of Future in io.vertx.core.eventbus
Methods in io.vertx.core.eventbus that return FutureModifier and TypeMethodDescriptionMessageProducer.close()Closes the producer, this method should be called when the message producer is not used anymore.MessageConsumer.completion()Message.replyAndRequest(Object message) Reply to this message, specifying areplyHandlerfor the reply - i.e.Message.replyAndRequest(Object message, DeliveryOptions options) LikeMessage.replyAndRequest(Object)but specifyingoptionsthat can be used to configure the delivery.Sends a message and specify areplyHandlerthat will be called if the recipient subsequently replies to the message.EventBus.request(String address, Object message, DeliveryOptions options) LikeEventBus.request(String, Object)but specifyingoptionsthat can be used to configure the delivery.MessageConsumer.unregister()Unregisters the handler which created this registrationWrite a message to the event-bus, either sending or publishing. -
Uses of Future in io.vertx.core.file
Methods in io.vertx.core.file that return FutureModifier and TypeMethodDescriptionChange the permissions on the file represented bypathtoperms, asynchronously.FileSystem.chmodRecursive(String path, String perms, String dirPerms) Change the permissions on the file represented bypathtoperms, asynchronously.Change the ownership on the file represented bypathtouserand {code group}, asynchronously.AsyncFile.close()Close the file.Copy a file from the pathfromto pathto, asynchronously.FileSystem.copy(String from, String to, CopyOptions options) Copy a file from the pathfromto pathto, asynchronously.FileSystem.copyRecursive(String from, String to, boolean recursive) Copy a file from the pathfromto pathto, asynchronously.FileSystem.createFile(String path) Creates an empty file with the specifiedpath, asynchronously.FileSystem.createFile(String path, String perms) Creates an empty file with the specifiedpathand permissionsperms, asynchronously.FileSystem.createTempDirectory(String prefix) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.FileSystem.createTempDirectory(String prefix, String perms) Creates a new directory in the default temporary-file directory, using the given prefix to generate its name, asynchronously.FileSystem.createTempDirectory(String dir, String prefix, String perms) Creates a new directory in the directory provided by the pathpath, using the given prefix to generate its name, asynchronously.FileSystem.createTempFile(String prefix, String suffix) Creates a new file in the default temporary-file directory, using the given prefix and suffix to generate its name, asynchronously.FileSystem.createTempFile(String prefix, String suffix, String perms) Creates a new file in the directory provided by the pathdir, using the given prefix and suffix to generate its name, asynchronously.FileSystem.createTempFile(String dir, String prefix, String suffix, String perms) Creates a new file in the directory provided by the pathdir, using the given prefix and suffix to generate its name, asynchronously.Deletes the file represented by the specifiedpath, asynchronously.FileSystem.deleteRecursive(String path) Deletes the file represented by the specifiedpath, asynchronously.Determines whether the file as specified by the pathpathexists, asynchronously.AsyncFile.flush()Flush any writes made to this file to underlying persistent storage.Returns properties of the file-system being used by the specifiedpath, asynchronously.AsyncFileLock.isValid()A lock remains valid until it is released or the file correspondingAsyncFileis closed.Create a hard link on the file system fromlinktoexisting, asynchronously.default Future<AsyncFileLock> AsyncFile.lock()Acquire a non-shared lock on the entire file.AsyncFile.lock(long position, long size, boolean shared) Acquire a lock on a portion of this file.Obtain properties for the link represented bypath, asynchronously.Create the directory represented bypath, asynchronously.Create the directory represented bypath, asynchronously.Create the directory represented bypathand any non existent parents, asynchronously.Create the directory represented bypathand any non existent parents, asynchronously.Move a file from the pathfromto pathto, asynchronously.FileSystem.move(String from, String to, CopyOptions options) Move a file from the pathfromto pathto, asynchronously.FileSystem.open(String path, OpenOptions options) Open the file represented bypath, asynchronously.Obtain properties for the file represented bypath, asynchronously.Readslengthbytes of data from the file at positionpositionin the file, asynchronously.Read the contents of the directory specified bypath, asynchronously.Read the contents of the directory specified bypath, asynchronously.Reads the entire file as represented by the pathpathas aBuffer, asynchronously.FileSystem.readSymlink(String link) Returns the path representing the file that the symbolic link specified bylinkpoints to, asynchronously.AsyncFileLock.release()Releases this lock;AsyncFile.size()Create a symbolic link on the file system fromlinktoexisting, asynchronously.Truncate the file represented bypathto lengthlenin bytes, asynchronously.Unlinks the link on the file system represented by the pathlink, asynchronously.default <T> Future<T> Acquire a lock on a portion of this file.default <T> Future<T> Acquire a non-shared lock on the entire file.Write aBufferto the file at positionpositionin the file, asynchronously.Creates the file, and writes the specifiedBuffer datato the file represented by the pathpath, asynchronously.Method parameters in io.vertx.core.file with type arguments of type Future -
Uses of Future in io.vertx.core.http
Fields in io.vertx.core.http with type parameters of type FutureModifier and TypeFieldDescriptionstatic final Function<HttpClientResponse, Future<RequestOptions>> HttpClientAgent.DEFAULT_REDIRECT_HANDLERConstant containing the default redirect handler of used by the client.Methods in io.vertx.core.http that return FutureModifier and TypeMethodDescriptionServerWebSocketHandshake.accept()Accept the WebSocket and terminate the WebSocket handshake.HttpClientResponse.body()Convenience method for receiving the entire request body in one piece.HttpServerRequest.body()Convenience method for receiving the entire request body in one piece.HttpClientRequest.cancel()Attempt to cancel the request according to the semantics of the underlying HTTP implementation.HttpServerResponse.cancel()Attempt to cancel the request according to the semantics of the underlying HTTP implementation.HttpClient.close()Close immediately (shutdown(0, TimeUnit.SECONDS).HttpClientConnection.close()HttpConnection.close()Close immediately (shutdown(0, TimeUnit.SECONDS).HttpServer.close()Close the server.ServerWebSocket.close()Close the WebSocket sending the default close frame.WebSocketBase.close()Close the WebSocket sending the default close frame.WebSocketBase.close(short statusCode) Close the WebSocket sending a close frame with specified status code.Close sending a close frame with specified status code and reason.WebSocketClient.close()Close immediately (shutdown(0, TimeUnit.SECONDS).Connect this WebSocket to the specified port, host and relative request URI.ClientWebSocket.connect(WebSocketConnectOptions options) Connect this WebSocket with the specified options.Connect this WebSocket at the relative request URI using the default host and port.Connect this WebSocket to the host and relative request URI and default port.HttpClientAgent.connect(HttpConnectOptions options) Connect to a remote HTTP server with the specificoptions, the connection is un-pooled and the management of the connection is left to the user.HttpClientRequest.connect()Create an HTTP tunnel to the server.Connect a WebSocket to the specified port, host and relative request URI.WebSocketClient.connect(WebSocketConnectOptions options) Connect a WebSocket with the specified options.Connect a WebSocket to the default client port, default client host and specified, relative request URI.Connect a WebSocket to the default client port and specified host and relative request URI.HttpClientRequest.end()Ends the request.Same asHttpClientRequest.end()but writes some data to the request body before ending.Same asHttpClientRequest.end(Buffer)but writes a String in UTF-8 encodingSame asHttpClientRequest.end(Buffer)but writes a String with the specified encodingHttpClientResponse.end()Returns a future signaling when the response has been fully received successfully or failed.HttpServerRequest.end()Returns a future signaling when the request has been fully received successfully or failed.HttpServerResponse.end()Ends the response.Same asHttpServerResponse.end()but writes some data to the response body before ending.Same asHttpServerResponse.end(Buffer)but writes a String in UTF-8 encoding before ending the response.Same asHttpServerResponse.end(Buffer)but writes a String with the specified encoding before ending the response.WebSocketBase.end()Ends the stream.HttpServer.listen()Tell the server to start listening.default Future<HttpServer> HttpServer.listen(int port) LikeHttpServer.listen(int, String)but the server will listen on host "0.0.0.0" and port specified here ignoring any value in theHttpServerOptionsthat was used when creating the server.default Future<HttpServer> Tell the server to start listening.HttpServer.listen(SocketAddress address) Tell the server to start listening on the given address supplying a handler that will be called when the server is actually listening (or has failed).Send a PING frame to the remote endpoint.default Future<HttpServerResponse> HttpServerResponse.push(HttpMethod method, HostAndPort authority, String path) LikeHttpServerResponse.push(HttpMethod, HostAndPort, String, MultiMap)with no headers.HttpServerResponse.push(HttpMethod method, HostAndPort authority, String path, MultiMap headers) Push a response to the client.default Future<HttpServerResponse> HttpServerResponse.push(HttpMethod method, String path) LikeHttpServerResponse.push(HttpMethod, HostAndPort, String, MultiMap)with the host copied from the current request.default Future<HttpServerResponse> HttpServerResponse.push(HttpMethod method, String path, MultiMap headers) LikeHttpServerResponse.push(HttpMethod, HostAndPort, String, MultiMap)with the host copied from the current request.ServerWebSocketHandshake.reject()Reject the WebSocket.ServerWebSocketHandshake.reject(int status) LikeServerWebSocketHandshake.reject()but with astatus.default Future<HttpClientRequest> HttpClient.request()Create an HTTP request to send to the server with the default host and port of the client.default Future<HttpClientRequest> HttpClient.request(HttpMethod method, int port, String host, String requestURI) Create an HTTP request to send to the server at thehostandport.default Future<HttpClientRequest> HttpClient.request(HttpMethod method, String requestURI) Create an HTTP request to send to the server at the default host and port.default Future<HttpClientRequest> HttpClient.request(HttpMethod method, String host, String requestURI) Create an HTTP request to send to the server at thehostand default port.HttpClient.request(RequestOptions options) Create an HTTP request to send to the server.HttpClientRequest.reset()Reset this stream with the error code0.HttpClientRequest.reset(long code) Reset this request:Reset this request:HttpServerResponse.reset()Equivalent to callingHttpServerResponse.reset(long)with0.HttpServerResponse.reset(long code) Reset this response:HttpClientRequest.response()default Future<HttpClientResponse> HttpClientRequest.send()Send the request with an empty body.default Future<HttpClientResponse> Send the request with a bufferbody.HttpClientRequest.send(ClientForm form) LikeHttpClientRequest.send()but with aform.default Future<HttpClientResponse> HttpClientRequest.send(ReadStream<Buffer> body) Send the request with a streambody.default Future<HttpClientResponse> Send the request with a stringbody.HttpServerResponse.send()Send the request with an empty body.Send the request with a bufferbody.HttpServerResponse.send(ReadStream<Buffer> body) Send the request with a streambody.Send the request with a stringbody.HttpServerResponse.sendFile(RandomAccessFile file) Same asHttpServerResponse.sendFile(FileChannel)withRandomAccessFileHttpServerResponse.sendFile(RandomAccessFile file, long offset) HttpServerResponse.sendFile(RandomAccessFile file, long offset, long length) Send the request with a streambody.Same asHttpServerResponse.sendFile(String, long, long)using length @code{Long.MAX_VALUE} which means until the end of the file.Ask the OS to stream a file as specified byfilenamedirectly from disk to the outgoing connection, bypassing userspace altogether (where supported by the underlying operating system.HttpServerResponse.sendFile(FileChannel channel) Same asHttpServerResponse.sendFile(FileChannel, long)using length @code{Long.MAX_VALUE} which means until the end of the file.HttpServerResponse.sendFile(FileChannel channel, long offset) Same asHttpServerResponse.sendFile(FileChannel, long, long)using length @code{Long.MAX_VALUE} which means until the end of the file.HttpServerResponse.sendFile(FileChannel channel, long offset, long length) Ask the OS to stream a file as specified bychanneldirectly from disk to the outgoing connection, bypassing userspace altogether (where supported by the underlying operating system).HttpClientRequest.sendHead()Deprecated, for removal: This API element is subject to removal in a future version.HttpClient.shutdown()Shutdown with a 30 seconds timeout (shutdown(30, TimeUnit.SECONDS)).Initiate the client shutdown sequence.HttpClientConnection.shutdown()HttpConnection.shutdown()Shutdown with a 30 seconds timeout (shutdown(30, TimeUnit.SECONDS)).Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight requests are processed, otherwise after atimeoutthe connection will be closed.HttpServer.shutdown()Shutdown with a 30 seconds timeout (shutdown(Duration.ofSeconds(30))).Initiate the server shutdown sequence.WebSocketBase.shutdown()LikeWebSocketBase.shutdown(long, TimeUnit, short, String)with a 30 seconds timeout, the status code1000anullreason.CallsWebSocketBase.shutdown(long, TimeUnit, short, String)with the status code1000and anullreason.CallsWebSocketBase.shutdown(long, TimeUnit, short, String)with anullreason.WebSocketBase.shutdown(short statusCode) LikeWebSocketBase.shutdown(long, TimeUnit, short, String)with a 30 seconds timeout and anullreason.LikeWebSocketBase.shutdown(long, TimeUnit, short, String)with a 30 seconds timeout.CallsWebSocketBase.shutdown(Duration, short, String)with anullreason.Initiate a graceful WebSocket shutdown, the shutdown handler is notified and shall close the WebSocket, otherwise after atimeoutthe WebSocket will be closed.WebSocketClient.shutdown()Shutdown with a 30 seconds timeout (shutdown(30, TimeUnit.SECONDS)).Initiate the client shutdown sequence.HttpServerFileUpload.streamToFileSystem(String filename) Stream the content of this upload to the given file on storage.HttpServerRequest.toNetSocket()Establish a TCP tunnel with the client.HttpServerRequest.toWebSocket()Upgrade the connection of the current request to a WebSocket.HttpConnection.updateSettings(HttpSettings settings) Send to the remote endpoint an update of this endpoint settingsHttpClientAgent.updateSSLOptions(ClientSSLOptions options) Update the client with new SSLoptions, the update happens if the options object is valid and different from the existing options object.HttpClientAgent.updateSSLOptions(ClientSSLOptions options, boolean force) Update the client with new SSLoptions, the update happens if the options object is valid and different from the existing options object.HttpServer.updateSSLOptions(ServerSSLOptions options) Update the server with new SSLoptions, the update happens if the options object is valid and different from the existing options object.HttpServer.updateSSLOptions(ServerSSLOptions options, boolean force) Update the server with new SSLoptions, the update happens if the options object is valid and different from the existing options object.WebSocketClient.updateSSLOptions(ClientSSLOptions options) Update the client with new SSLoptions, the update happens if the options object is valid and different from the existing options object.WebSocketClient.updateSSLOptions(ClientSSLOptions options, boolean force) Update the client with new SSLoptions, the update happens if the options object is valid and different from the existing options object.HttpServer.updateTrafficShapingOptions(TrafficShapingOptions options) Update the server with new trafficoptions, the update happens if the options object is valid and different from the existing options object.Write aStringto the request body, encoded as UTF-8.Write aStringto the request body, encoded using the encodingenc.Write aStringto the response body, encoded in UTF-8.Write aStringto the response body, encoded using the encodingenc.HttpServerResponse.writeAltSvc(String advertisement) Write an invalid input: '<'a href="https://datatracker.ietf.org/doc/html/rfc7838"HTTP Alternative Services advertisement for the given request and its authority, according to the underlying protocol.WebSocketBase.writeBinaryMessage(Buffer data) Writes a (potentially large) piece of binary data to the connection.HttpServerResponse.writeContinue()Used to write an interim 100 Continue response to signify that the client should send the rest of the request.HttpClientRequest.writeCustomFrame(int type, int flags, Buffer payload) Write an HTTP/2 frame to the request, allowing to extend the HTTP/2 protocol.HttpClientRequest.writeCustomFrame(HttpFrame frame) LikeHttpClientRequest.writeCustomFrame(int, int, Buffer)but with anHttpFrame.HttpServerResponse.writeCustomFrame(int type, int flags, Buffer payload) Write an HTTP/2 frame to the response, allowing to extend the HTTP/2 protocol.HttpServerResponse.writeCustomFrame(HttpFrame frame) LikeHttpServerResponse.writeCustomFrame(int, int, Buffer)but with anHttpFrame.HttpServerResponse.writeEarlyHints(MultiMap headers) Used to write an interim 103 Early Hints response to return some HTTP headers before the final HTTP message.WebSocketBase.writeFinalBinaryFrame(Buffer data) Write a final WebSocket binary frame to the connectionWebSocketBase.writeFinalTextFrame(String text) Write a final WebSocket text frame to the connectionWebSocketBase.writeFrame(WebSocketFrame frame) Write a WebSocket frame to the connectionHttpClientRequest.writeHead()Write the head of the request.HttpServerResponse.writeHead()Send the response headers.Writes a ping frame to the connection.Writes a pong frame to the connection.WebSocketBase.writeTextMessage(String text) Writes a (potentially large) piece of text data to the connection.Method parameters in io.vertx.core.http with type arguments of type FutureModifier and TypeMethodDescriptionHttpClientRequest.redirectHandler(Function<HttpClientResponse, Future<HttpClientRequest>> handler) HttpClientBuilder.withRedirectHandler(Function<HttpClientResponse, Future<RequestOptions>> handler) Set a redirect handler for the http client. -
Uses of Future in io.vertx.core.net
Methods in io.vertx.core.net that return FutureModifier and TypeMethodDescriptionQuicStream.abort(int error) Instruct the remote peer that this part of the stream is no longer interested in received data and wants it to cease transmission, aSTOP_SENDINGframe is sent to the remote peer.QuicEndpoint.bind(SocketAddress address) Binds a UDP socket at the givenaddress.NetClient.close()Close immediately (shutdown(0, TimeUnit.SECONDS).NetServer.close()Close the server.NetSocket.close()Close the socketQuicConnection.close()Close the connection, all associated streams will be closed before.QuicConnection.close(QuicConnectionClose payload) Close the connection, all associated streams will be closed before.QuicEndpoint.close()Close the endpoint and release all associated resources.StreamChannel.close()Close the channelOpen a connection to a server at the specificportandhost.Open a connection to a server at the specificportandhost.NetClient.connect(ConnectOptions connectOptions) Open a connection to a server at the specificconnectOptions.NetClient.connect(SocketAddress remoteAddress) Open a connection to a server at the specificremoteAddress.NetClient.connect(SocketAddress remoteAddress, String serverName) Open a connection to a server at the specificremoteAddress.default Future<QuicConnection> Connect to a Quic server at the specificportandhost.default Future<QuicConnection> QuicClient.connect(int port, String host, QuicConnectOptions options) Connect to a Quic server at the specificportandhost, with specificoptions.default Future<QuicConnection> QuicClient.connect(SocketAddress address) Connect to a Quic server.QuicClient.connect(SocketAddress address, QuicConnectOptions options) Connect to a Quic server with specificoptions.NetSocket.end()CallsNetSocket.close()StreamChannel.end()CallsStreamChannel.close()NetServer.listen()Start listening on the port and host as configured in theNetServerOptionsused when creating the server.NetServer.listen(int port) Start listening on the specified port and host "0.0.0.0", ignoring port and host configured in theNetServerOptionsused when creating the server.Start listening on the specified port and host, ignoring port and host configured in theNetServerOptionsused when creating the server.NetServer.listen(SocketAddress localAddress) Start listening on the specified local address, ignoring port and host configured in theNetServerOptionsused when creating the server.QuicServer.listen()Start listening on theportandhostas configured in theQuicServerConfigused when creating the server.default Future<SocketAddress> QuicServer.listen(int port) Start listening on the specified port and host "0.0.0.0".default Future<SocketAddress> Start listening on the specifiedportandhost.default Future<SocketAddress> QuicServer.listen(SocketAddress localAddress) Start listening on the specified local address.default Future<QuicStream> QuicConnection.openStream()Open a bidirectional stream to the remote endpoint.QuicConnection.openStream(boolean bidirectional) Open a stream to the remote endpoint withbidirectional parameterspecifying its directionality.QuicStream.reset(int error) Abruptly terminate the sending part of the stream with the specified application protocolerrorcode argument, aRESETframe is sent to the remote peer.Tell the operating system to stream a file as specified byfilenamedirectly from disk to the outgoing connection, bypassing userspace altogether (where supported by the underlying operating system.Tell the operating system to stream a file as specified byfilenamedirectly from disk to the outgoing connection, bypassing userspace altogether (where supported by the underlying operating system.Tell the operating system to stream a file as specified byfilenamedirectly from disk to the outgoing connection, bypassing userspace altogether (where supported by the underlying operating system.Tell the operating system to stream a file as specified byfilenamedirectly from disk to the outgoing connection, bypassing userspace altogether (where supported by the underlying operating system.Tell the operating system to stream a file as specified byfilenamedirectly from disk to the outgoing connection, bypassing userspace altogether (where supported by the underlying operating system.Tell the operating system to stream a file as specified byfilenamedirectly from disk to the outgoing connection, bypassing userspace altogether (where supported by the underlying operating system.NetClient.shutdown()Shutdown with a 30 seconds timeout (shutdown(30, TimeUnit.SECONDS)).CallsNetClient.shutdown(Duration).Initiate the client shutdown sequence.NetServer.shutdown()Shutdown with a 30 seconds timeout (shutdown(30, TimeUnit.SECONDS)).CallsNetServer.shutdown(Duration).Initiate the server shutdown sequence.QuicConnection.shutdown()Shutdown with a 30 seconds timeout.Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight streams are processed, otherwise after atimeoutthe connection will be closed.QuicConnection.shutdown(Duration timeout, QuicConnectionClose payload) Initiate a graceful connection shutdown, the connection is taken out of service and closed when all the inflight streams are processed, otherwise after atimeoutthe connection will be closed.QuicEndpoint.shutdown()Shutdown the endpoint with a 30 seconds grace period (shutdown(30, TimeUnit.SECONDS)).Initiate the endpoint shutdown sequence.NetClient.updateSSLOptions(ClientSSLOptions options) Update the client with new SSLoptions, the update happens if the options object is valid and different from the existing options object.NetClient.updateSSLOptions(ClientSSLOptions options, boolean force) Update the client with new SSLoptions, the update happens if the options object is valid and different from the existing options object.NetServer.updateSSLOptions(ServerSSLOptions options) Update the server with new SSLoptions, the update happens if the options object is valid and different from the existing options object.NetServer.updateSSLOptions(ServerSSLOptions options, boolean force) Update the server with new SSLoptions, the update happens if the options object is valid and different from the existing options object.QuicServer.updateSSLOptions(ServerSSLOptions options) Update the server with new SSLoptions, the update happens if the options object is valid and different from the existing options object.QuicServer.updateSSLOptions(ServerSSLOptions options, boolean force) Update the server with new SSLoptions, the update happens if the options object is valid and different from the existing options object.NetServer.updateTrafficShapingOptions(TrafficShapingOptions options) Update the server with new trafficoptions, the update happens if the options object is valid and different from the existing options object.NetSocket.upgradeToSsl()LikeNetSocket.upgradeToSsl(SSLOptions, String, Buffer)with the default SSL options, without indicating a server name, without an upgrade message.NetSocket.upgradeToSsl(Buffer msg) LikeNetSocket.upgradeToSsl(SSLOptions, String, Buffer)with the default SSL options and without indicating a server name.NetSocket.upgradeToSsl(SSLOptions sslOptions) Upgrade channel to use SSL/TLS.NetSocket.upgradeToSsl(SSLOptions sslOptions, Buffer msg) LikeNetSocket.upgradeToSsl(SSLOptions, String, Buffer)without indicating a server nameNetSocket.upgradeToSsl(SSLOptions sslOptions, String serverName) LikeNetSocket.upgradeToSsl(SSLOptions, String, Buffer)without an upgrade message.NetSocket.upgradeToSsl(SSLOptions sslOptions, String serverName, Buffer upgrade) Upgrade the channel to use SSL/TLS, in other words proceeds to the TLS handshake.NetSocket.upgradeToSsl(String serverName) LikeNetSocket.upgradeToSsl(SSLOptions, String, Buffer)with the default SSL options and without an update message.NetSocket.upgradeToSsl(String serverName, Buffer msg) LikeNetSocket.upgradeToSsl(SSLOptions, String, Buffer)with the default SSL options.Write aStringto the connection, encoded in UTF-8.Write aStringto the connection, encoded using the encodingenc.Write aStringto the connection, encoded in UTF-8.Write aStringto the connection, encoded using the encodingenc.QuicConnection.writeDatagram(Buffer buffer) Send a datagram. -
Uses of Future in io.vertx.core.net.endpoint
Methods in io.vertx.core.net.endpoint that return FutureModifier and TypeMethodDescriptionEndpointResolver.resolveEndpoint(Address address) Resolver an endpoint for the specifiedaddress -
Uses of Future in io.vertx.core.spi.dns
Methods in io.vertx.core.spi.dns that return Future -
Uses of Future in io.vertx.core.spi.endpoint
Methods in io.vertx.core.spi.endpoint that return Future -
Uses of Future in io.vertx.core.streams
Methods in io.vertx.core.streams that return FutureModifier and TypeMethodDescriptiondefault <R,A> Future <R> Apply acollectorto this stream, the obtained result is returned as a future.WriteStream.end()Ends the stream.Same asWriteStream.end()but writes some data to the stream before ending.ReadStream.pipeTo(WriteStream<T> dst) Pipe thisReadStreamto theWriteStream.Pipe.to(WriteStream<T> dst) Start to pipe the elements to the destinationWriteStream.Write some data to the stream.
HttpClientRequest.writeHead(), this is scheduled for removal in Vert.x 6