Class HttpConnectionOverHTTP2
- java.lang.Object
-
- org.eclipse.jetty.client.HttpConnection
-
- org.eclipse.jetty.http2.client.http.HttpConnectionOverHTTP2
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Connection,ConnectionPool.Multiplexable,Attachable,Sweeper.Sweepable
public class HttpConnectionOverHTTP2 extends HttpConnection implements Sweeper.Sweepable, ConnectionPool.Multiplexable
-
-
Constructor Summary
Constructors Constructor Description HttpConnectionOverHTTP2(HttpDestination destination, Session session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpChannelOverHTTP2acquireHttpChannel()voidclose()protected voidclose(java.lang.Throwable failure)protected java.util.Iterator<HttpChannel>getHttpChannels()intgetMaxMultiplex()SessiongetSession()booleanisClosed()booleanisRecycleHttpChannels()protected HttpChannelOverHTTP2newHttpChannel()booleanonIdleTimeout(long idleTimeout)protected booleanrelease(HttpChannelOverHTTP2 channel)protected SendFailuresend(HttpExchange exchange)voidsetRecycleHttpChannels(boolean recycleHttpChannels)booleansweep()java.lang.StringtoString()-
Methods inherited from class org.eclipse.jetty.client.HttpConnection
destroy, getAttachment, getHttpClient, getHttpDestination, normalizeRequest, send, send, setAttachment
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.client.ConnectionPool.Multiplexable
setMaxMultiplex
-
-
-
-
Constructor Detail
-
HttpConnectionOverHTTP2
public HttpConnectionOverHTTP2(HttpDestination destination, Session session)
-
-
Method Detail
-
getSession
public Session getSession()
-
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
protected java.util.Iterator<HttpChannel> getHttpChannels()
- Specified by:
getHttpChannelsin classHttpConnection
-
send
protected SendFailure send(HttpExchange exchange)
- Specified by:
sendin classHttpConnection
-
acquireHttpChannel
protected HttpChannelOverHTTP2 acquireHttpChannel()
-
newHttpChannel
protected HttpChannelOverHTTP2 newHttpChannel()
-
release
protected boolean release(HttpChannelOverHTTP2 channel)
-
onIdleTimeout
public boolean onIdleTimeout(long idleTimeout)
- Overrides:
onIdleTimeoutin classHttpConnection
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceConnection
-
close
protected void close(java.lang.Throwable failure)
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceConnection- Returns:
- whether this connection has been closed
- See Also:
Connection.close()
-
sweep
public boolean sweep()
- Specified by:
sweepin interfaceSweeper.Sweepable- Returns:
- whether this resource should be swept
-
toString
public java.lang.String toString()
- Overrides:
toStringin classHttpConnection
-
-