Interface HttpClientConnection
- All Superinterfaces:
HttpClient, HttpConnection
Represents an HTTP client connection.
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.
- Author:
- Julien Viet
-
Method Summary
Methods inherited from interface HttpConnection
closeHandler, exceptionHandler, getWindowSize, goAway, goAway, goAway, goAwayHandler, indicatedServerName, isSsl, localAddress, localAddress, peerCertificates, ping, pingHandler, protocolVersion, proxyProtocolV2HeaderTLVs, remoteAddress, remoteAddress, remoteSettings, remoteSettingsHandler, settings, setWindowSize, shutdown, shutdownHandler, sslSession, updateSettings
-
Method Details
-
activeStreams
long activeStreams()- Returns:
- the number of active request/response (streams)
-
maxActiveStreams
long maxActiveStreams()- Returns:
- the max number of concurrent active streams this connection can handle
-
shutdown
Description copied from interface:HttpConnectionShutdown with a 30 seconds timeout (shutdown(30, TimeUnit.SECONDS)).- Specified by:
shutdownin interfaceHttpClient- Specified by:
shutdownin interfaceHttpConnection- Returns:
- a future completed when shutdown has completed
-
shutdown
Description copied from interface:HttpConnection- Specified by:
shutdownin interfaceHttpClient- Specified by:
shutdownin interfaceHttpConnection
-
close
Description copied from interface:HttpConnectionClose immediately (shutdown(0, TimeUnit.SECONDS).- Specified by:
closein interfaceHttpClient- Specified by:
closein interfaceHttpConnection- Returns:
- a future notified when the client is closed
-