Class HttpClientConnection
- All Implemented Interfaces:
MutinyDelegate,HttpClient
You can use this connection to create requests to the connected server.
Depending on the nature of the connection, requests might just be sent to the server or might be queued until a connection request is available.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Julien Viet
- See Also:
-
HttpClientConnection
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.core.http.HttpClient
HttpClient.HttpClientImpl -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpClientConnection(io.vertx.core.http.HttpClientConnection delegate) Create a new instance ofHttpClientConnectiondelegating to the given (non-null) instance ofHttpClientConnection.HttpClientConnection(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionlongio.smallrye.mutiny.Uni<Void>close()Unlike the bare Vert.x variant, this method returns aUni.voidUnlike the bare Vert.x variant, this method returns aVoid.Unlike the bare Vert.x variant, this method ignores theVoidresult or any failure.booleanio.vertx.core.http.HttpClientConnectionGet the delegate instance.inthashCode()longstatic HttpClientConnectionnewInstance(io.vertx.core.http.HttpClientConnection delegate) Creates a new instance of theHttpClientConnection.io.smallrye.mutiny.Uni<io.vertx.core.buffer.Buffer>ping(io.vertx.core.buffer.Buffer arg0) Send a PING frame to the remote endpoint.io.vertx.core.buffer.BufferpingAndAwait(io.vertx.core.buffer.Buffer arg0) Send a PING frame to the remote endpoint.pingAndForget(io.vertx.core.buffer.Buffer arg0) Send a PING frame to the remote endpoint.io.smallrye.mutiny.Uni<HttpClientRequest>request()Create an HTTP request to send to the server with the default host and port of the client.io.smallrye.mutiny.Uni<HttpClientRequest>Create an HTTP request to send to the server at thehostandport.io.smallrye.mutiny.Uni<HttpClientRequest>Create an HTTP request to send to the server at the default host and port.io.smallrye.mutiny.Uni<HttpClientRequest>Create an HTTP request to send to the server at thehostand default port.io.smallrye.mutiny.Uni<HttpClientRequest>request(io.vertx.core.http.RequestOptions arg0) Create an HTTP request to send to the server.Create an HTTP request to send to the server with the default host and port of the client.requestAndAwait(io.vertx.core.http.HttpMethod arg0, int arg1, String arg2, String arg3) Create an HTTP request to send to the server at thehostandport.requestAndAwait(io.vertx.core.http.HttpMethod arg0, String arg1) Create an HTTP request to send to the server at the default host and port.requestAndAwait(io.vertx.core.http.HttpMethod arg0, String arg1, String arg2) Create an HTTP request to send to the server at thehostand default port.requestAndAwait(io.vertx.core.http.RequestOptions arg0) Create an HTTP request to send to the server.Create an HTTP request to send to the server with the default host and port of the client.requestAndForget(io.vertx.core.http.HttpMethod arg0, int arg1, String arg2, String arg3) Create an HTTP request to send to the server at thehostandport.requestAndForget(io.vertx.core.http.HttpMethod arg0, String arg1) Create an HTTP request to send to the server at the default host and port.requestAndForget(io.vertx.core.http.HttpMethod arg0, String arg1, String arg2) Create an HTTP request to send to the server at thehostand default port.requestAndForget(io.vertx.core.http.RequestOptions arg0) Create an HTTP request to send to the server.io.smallrye.mutiny.Uni<Void>shutdown()Unlike the bare Vert.x variant, this method returns aUni.io.smallrye.mutiny.Uni<Void>Unlike the bare Vert.x variant, this method returns aUni.io.smallrye.mutiny.Uni<Void>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.voidUnlike the bare Vert.x variant, this method returns aVoid.voidshutdownAndAwait(long timeout, TimeUnit unit) Unlike the bare Vert.x variant, this method returns aVoid.voidshutdownAndAwait(Duration arg0) 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.Unlike the bare Vert.x variant, this method ignores theVoidresult or any failure.shutdownAndForget(long timeout, TimeUnit unit) Unlike the bare Vert.x variant, this method ignores theVoidresult or any failure.shutdownAndForget(Duration arg0) 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.toString()io.smallrye.mutiny.Uni<Void>updateSettings(io.vertx.core.http.HttpSettings arg0) Send to the remote endpoint an update of this endpoint settingsvoidupdateSettingsAndAwait(io.vertx.core.http.HttpSettings arg0) Send to the remote endpoint an update of this endpoint settingsupdateSettingsAndForget(io.vertx.core.http.HttpSettings arg0) Send to the remote endpoint an update of this endpoint settingsMethods inherited from class io.vertx.mutiny.core.http.HttpConnection
closeHandler, exceptionHandler, getWindowSize, goAway, goAway, goAway, goAwayHandler, indicatedServerName, isSsl, localAddress, localAddress, newInstance, pingHandler, protocolVersion, remoteAddress, remoteAddress, remoteSettings, remoteSettingsHandler, settings, setWindowSize, shutdownHandler, sslSession
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
HttpClientConnection
public HttpClientConnection(io.vertx.core.http.HttpClientConnection delegate) Create a new instance ofHttpClientConnectiondelegating to the given (non-null) instance ofHttpClientConnection. -
HttpClientConnection
-
-
Method Details
-
getDelegate
public io.vertx.core.http.HttpClientConnection getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceHttpClient- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classHttpConnection- Returns:
- the delegate instance
-
shutdown
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Specified by:
shutdownin interfaceHttpClient- Overrides:
shutdownin classHttpConnection- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpClientConnection.shutdown()
-
shutdownAndAwait
public void shutdownAndAwait()Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
shutdownAndAwaitin classHttpConnection- See Also:
-
HttpClientConnection.shutdown()
-
shutdownAndForget
Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Overrides:
shutdownAndForgetin classHttpConnection- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpClientConnection.shutdown()
-
shutdown
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Specified by:
shutdownin interfaceHttpClient- Overrides:
shutdownin classHttpConnection- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpClientConnection.shutdown(long, TimeUnit)
-
shutdownAndAwait
Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
shutdownAndAwaitin classHttpConnection- See Also:
-
HttpClientConnection.shutdown(long, TimeUnit)
-
shutdownAndForget
Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Overrides:
shutdownAndForgetin classHttpConnection- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpClientConnection.shutdown(long, TimeUnit)
-
close
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Specified by:
closein interfaceHttpClient- Overrides:
closein classHttpConnection- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpClientConnection.close()
-
closeAndAwait
public void closeAndAwait()Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
closeAndAwaitin classHttpConnection- See Also:
-
HttpClientConnection.close()
-
closeAndForget
Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Overrides:
closeAndForgetin classHttpConnection- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpClientConnection.close()
-
ping
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.core.buffer.Buffer> ping(io.vertx.core.buffer.Buffer arg0) Send a PING frame to the remote endpoint. This is not implemented for HTTP/1.x.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Overrides:
pingin classHttpConnection- Parameters:
data- the 8 bytes data of the frame- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpConnection.ping(Buffer)
-
pingAndAwait
public io.vertx.core.buffer.Buffer pingAndAwait(io.vertx.core.buffer.Buffer arg0) Send a PING frame to the remote endpoint. This is not implemented for HTTP/1.x.Unlike the bare Vert.x variant, this method returns a
Buffer. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
pingAndAwaitin classHttpConnection- Parameters:
data- the 8 bytes data of the frame- Returns:
- The operation result
- See Also:
-
HttpConnection.ping(Buffer)
-
pingAndForget
Send a PING frame to the remote endpoint. This is not implemented for HTTP/1.x.Unlike the bare Vert.x variant, this method ignores the
Bufferresult or any failure.- Overrides:
pingAndForgetin classHttpConnection- Parameters:
data- the 8 bytes data of the frame- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpConnection.ping(Buffer)
-
request
@CheckReturnValue public io.smallrye.mutiny.Uni<HttpClientRequest> request(io.vertx.core.http.HttpMethod arg0, int arg1, String arg2, String arg3) Create an HTTP request to send to the server at thehostandport.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Specified by:
requestin interfaceHttpClient- Parameters:
method- the HTTP methodport- the porthost- the hostrequestURI- the relative URI- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpClient.request(HttpMethod, int, String, String)
-
requestAndAwait
public HttpClientRequest requestAndAwait(io.vertx.core.http.HttpMethod arg0, int arg1, String arg2, String arg3) Create an HTTP request to send to the server at thehostandport.Unlike the bare Vert.x variant, this method returns a
HttpClientRequest. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
method- the HTTP methodport- the porthost- the hostrequestURI- the relative URI- Returns:
- The operation result
- See Also:
-
HttpClient.request(HttpMethod, int, String, String)
-
requestAndForget
public HttpClientConnection requestAndForget(io.vertx.core.http.HttpMethod arg0, int arg1, String arg2, String arg3) Create an HTTP request to send to the server at thehostandport.Unlike the bare Vert.x variant, this method ignores the
HttpClientRequestresult or any failure.- Parameters:
method- the HTTP methodport- the porthost- the hostrequestURI- the relative URI- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpClient.request(HttpMethod, int, String, String)
-
request
@CheckReturnValue public io.smallrye.mutiny.Uni<HttpClientRequest> request(io.vertx.core.http.HttpMethod arg0, String arg1) Create an HTTP request to send to the server at the default host and port.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Specified by:
requestin interfaceHttpClient- Parameters:
method- the HTTP methodrequestURI- the relative URI- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpClient.request(HttpMethod, String)
-
requestAndAwait
Create an HTTP request to send to the server at the default host and port.Unlike the bare Vert.x variant, this method returns a
HttpClientRequest. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
method- the HTTP methodrequestURI- the relative URI- Returns:
- The operation result
- See Also:
-
HttpClient.request(HttpMethod, String)
-
requestAndForget
Create an HTTP request to send to the server at the default host and port.Unlike the bare Vert.x variant, this method ignores the
HttpClientRequestresult or any failure.- Parameters:
method- the HTTP methodrequestURI- the relative URI- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpClient.request(HttpMethod, String)
-
shutdown
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. Client connection are immediately removed from the pool.- HTTP/2 connections will send a go away frame immediately to signal the other side the connection will close.
- HTTP/1.x connection will be closed.
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Specified by:
shutdownin interfaceHttpClient- Overrides:
shutdownin classHttpConnection- Parameters:
timeout- the amount of time after which all resources are forcibly closed- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpConnection.shutdown(Duration)
-
shutdownAndAwait
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. Client connection are immediately removed from the pool.- HTTP/2 connections will send a go away frame immediately to signal the other side the connection will close.
- HTTP/1.x connection will be closed.
Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
shutdownAndAwaitin classHttpConnection- Parameters:
timeout- the amount of time after which all resources are forcibly closed- See Also:
-
HttpConnection.shutdown(Duration)
-
shutdownAndForget
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. Client connection are immediately removed from the pool.- HTTP/2 connections will send a go away frame immediately to signal the other side the connection will close.
- HTTP/1.x connection will be closed.
Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Overrides:
shutdownAndForgetin classHttpConnection- Parameters:
timeout- the amount of time after which all resources are forcibly closed- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpConnection.shutdown(Duration)
-
request
@CheckReturnValue public io.smallrye.mutiny.Uni<HttpClientRequest> request(io.vertx.core.http.RequestOptions arg0) Create an HTTP request to send to the server.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Specified by:
requestin interfaceHttpClient- Parameters:
options- the request options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpClient.request(RequestOptions)
-
requestAndAwait
Create an HTTP request to send to the server.Unlike the bare Vert.x variant, this method returns a
HttpClientRequest. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
options- the request options- Returns:
- The operation result
- See Also:
-
HttpClient.request(RequestOptions)
-
requestAndForget
Create an HTTP request to send to the server.Unlike the bare Vert.x variant, this method ignores the
HttpClientRequestresult or any failure.- Parameters:
options- the request options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpClient.request(RequestOptions)
-
updateSettings
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> updateSettings(io.vertx.core.http.HttpSettings arg0) Send to the remote endpoint an update of this endpoint settings ThecompletionHandlerwill be notified when the remote endpoint has acknowledged the settings. This is not implemented for HTTP/1.x.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Overrides:
updateSettingsin classHttpConnection- Parameters:
settings- the new settings- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpConnection.updateSettings(HttpSettings)
-
updateSettingsAndAwait
public void updateSettingsAndAwait(io.vertx.core.http.HttpSettings arg0) Send to the remote endpoint an update of this endpoint settings ThecompletionHandlerwill be notified when the remote endpoint has acknowledged the settings. This is not implemented for HTTP/1.x.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
updateSettingsAndAwaitin classHttpConnection- Parameters:
settings- the new settings- See Also:
-
HttpConnection.updateSettings(HttpSettings)
-
updateSettingsAndForget
Send to the remote endpoint an update of this endpoint settings ThecompletionHandlerwill be notified when the remote endpoint has acknowledged the settings. This is not implemented for HTTP/1.x.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Overrides:
updateSettingsAndForgetin classHttpConnection- Parameters:
settings- the new settings- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpConnection.updateSettings(HttpSettings)
-
request
Create an HTTP request to send to the server with the default host and port of the client.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Specified by:
requestin interfaceHttpClient- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpClient.request()
-
requestAndAwait
Create an HTTP request to send to the server with the default host and port of the client.Unlike the bare Vert.x variant, this method returns a
HttpClientRequest. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
HttpClient.request()
-
requestAndForget
Create an HTTP request to send to the server with the default host and port of the client.Unlike the bare Vert.x variant, this method ignores the
HttpClientRequestresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpClient.request()
-
request
@CheckReturnValue public io.smallrye.mutiny.Uni<HttpClientRequest> request(io.vertx.core.http.HttpMethod arg0, String arg1, String arg2) Create an HTTP request to send to the server at thehostand default port.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Specified by:
requestin interfaceHttpClient- Parameters:
method- the HTTP methodhost- the hostrequestURI- the relative URI- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
HttpClient.request(HttpMethod, String, String)
-
requestAndAwait
public HttpClientRequest requestAndAwait(io.vertx.core.http.HttpMethod arg0, String arg1, String arg2) Create an HTTP request to send to the server at thehostand default port.Unlike the bare Vert.x variant, this method returns a
HttpClientRequest. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
method- the HTTP methodhost- the hostrequestURI- the relative URI- Returns:
- The operation result
- See Also:
-
HttpClient.request(HttpMethod, String, String)
-
requestAndForget
public HttpClientConnection requestAndForget(io.vertx.core.http.HttpMethod arg0, String arg1, String arg2) Create an HTTP request to send to the server at thehostand default port.Unlike the bare Vert.x variant, this method ignores the
HttpClientRequestresult or any failure.- Parameters:
method- the HTTP methodhost- the hostrequestURI- the relative URI- Returns:
- The current instance to chain operations if needed.
- See Also:
-
HttpClient.request(HttpMethod, String, String)
-
activeStreams
public long activeStreams()- Returns:
- the number of active request/response (streams)
-
maxActiveStreams
public long maxActiveStreams()- Returns:
- the max number of concurrent active streams this connection can handle
-
newInstance
Creates a new instance of theHttpClientConnection. -
hashCode
public int hashCode()- Overrides:
hashCodein classHttpConnection
-
equals
- Overrides:
equalsin classHttpConnection
-
toString
- Overrides:
toStringin classHttpConnection
-