Class HttpConnectionOverHTTP2
java.lang.Object
org.eclipse.jetty.client.HttpConnection
org.eclipse.jetty.http2.client.http.HttpConnectionOverHTTP2
- All Implemented Interfaces:
Closeable,AutoCloseable,Connection,ConnectionPool.Multiplexable,IConnection,Attachable,Sweeper.Sweepable
public class HttpConnectionOverHTTP2
extends HttpConnection
implements Sweeper.Sweepable, ConnectionPool.Multiplexable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpChannelOverHTTP2voidclose()protected voidprotected Iterator<HttpChannel>intbooleanisClosed()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.HttpConnection
destroy, getAttachment, getHttpClient, getHttpDestination, send, send, setAttachmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.client.ConnectionPool.Multiplexable
setMaxMultiplex
-
Constructor Details
-
HttpConnectionOverHTTP2
-
-
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
-
isRecycleHttpChannels
public boolean isRecycleHttpChannels() -
setRecycleHttpChannels
public void setRecycleHttpChannels(boolean recycleHttpChannels) -
getMaxMultiplex
public int getMaxMultiplex()- Specified by:
getMaxMultiplexin interfaceConnectionPool.Multiplexable- Returns:
- the max number of requests multiplexable 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
-