Class HttpConnectionOverHTTP2
java.lang.Object
org.eclipse.jetty.client.transport.HttpConnection
org.eclipse.jetty.http2.client.transport.internal.HttpConnectionOverHTTP2
- All Implemented Interfaces:
Closeable,AutoCloseable,Connection,ConnectionPool.MaxMultiplexable,ConnectionPool.MaxUsable,IConnection,Attachable,Sweeper.Sweepable
public class HttpConnectionOverHTTP2
extends HttpConnection
implements Sweeper.Sweepable, ConnectionPool.MaxMultiplexable, ConnectionPool.MaxUsable
-
Constructor Summary
ConstructorsConstructorDescriptionHttpConnectionOverHTTP2(Destination destination, Session session, HTTP2Connection connection) -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpChannelOverHTTP2voidclose()protected voidprotected Iterator<HttpChannel> intintbooleanisClosed()booleanprotected HttpChannelOverHTTP2protected voidnormalizeRequest(HttpRequest request) booleanonIdleTimeout(long idleTimeout, Throwable failure) protected booleanrelease(HttpChannelOverHTTP2 channel) send(HttpExchange exchange) voidsetRecycleHttpChannels(boolean recycleHttpChannels) booleansweep()toString()voidMethods inherited from class org.eclipse.jetty.client.transport.HttpConnection
destroy, getAttachment, getHttpClient, getHttpDestination, send, send, setAttachment
-
Constructor Details
-
HttpConnectionOverHTTP2
public HttpConnectionOverHTTP2(Destination destination, Session session, HTTP2Connection connection)
-
-
Method Details
-
getSession
-
getLocalSocketAddress
- Specified by:
getLocalSocketAddressin interfaceConnection- Returns:
- the local socket address associated with the connection
-
getRemoteSocketAddress
- Specified by:
getRemoteSocketAddressin interfaceConnection- Returns:
- the remote socket address associated with the connection
-
getSslSessionData
- Specified by:
getSslSessionDatain interfaceConnection- Returns:
- the
EndPoint.SslSessionDataassociated with the connection, ornullif the connection is not secure.
-
isRecycleHttpChannels
public boolean isRecycleHttpChannels() -
setRecycleHttpChannels
public void setRecycleHttpChannels(boolean recycleHttpChannels) -
getMaxMultiplex
public int getMaxMultiplex()- Specified by:
getMaxMultiplexin interfaceConnectionPool.MaxMultiplexable- Returns:
- the max number of requests multiplexable on a single connection
-
getMaxUsage
public int getMaxUsage()- Specified by:
getMaxUsagein interfaceConnectionPool.MaxUsable- Returns:
- the max number of requests on a single connection
-
getHttpChannels
- Specified by:
getHttpChannelsin classHttpConnection
-
send
- Specified by:
sendin interfaceIConnection
-
upgrade
-
normalizeRequest
- Overrides:
normalizeRequestin classHttpConnection
-
acquireHttpChannel
-
newHttpChannel
-
release
-
onIdleTimeout
- Overrides:
onIdleTimeoutin classHttpConnection
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceConnection
-
close
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceConnection- Returns:
- whether this connection has been closed
- See Also:
-
sweep
public boolean sweep()- Specified by:
sweepin interfaceSweeper.Sweepable- Returns:
- whether this resource should be swept
-
toString
- Overrides:
toStringin classHttpConnection
-