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,org.eclipse.jetty.util.thread.Sweeper.Sweepable
public class HttpConnectionOverHTTP2 extends HttpConnection implements org.eclipse.jetty.util.thread.Sweeper.Sweepable
-
-
Constructor Summary
Constructors Constructor Description HttpConnectionOverHTTP2(HttpDestination destination, org.eclipse.jetty.http2.api.Session session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpChannelOverHTTP2acquireHttpChannel()voidclose()protected voidclose(java.lang.Throwable failure)org.eclipse.jetty.http2.api.SessiongetSession()booleanisClosed()booleanisRecycleHttpChannels()protected HttpChannelOverHTTP2newHttpChannel()booleanonIdleTimeout(long idleTimeout)protected voidrelease(HttpChannelOverHTTP2 channel)protected SendFailuresend(HttpExchange exchange)voidsetRecycleHttpChannels(boolean recycleHttpChannels)booleansweep()java.lang.StringtoString()-
Methods inherited from class org.eclipse.jetty.client.HttpConnection
getHttpClient, getHttpDestination, normalizeRequest, send, send
-
-
-
-
Constructor Detail
-
HttpConnectionOverHTTP2
public HttpConnectionOverHTTP2(HttpDestination destination, org.eclipse.jetty.http2.api.Session session)
-
-
Method Detail
-
getSession
public org.eclipse.jetty.http2.api.Session getSession()
-
isRecycleHttpChannels
public boolean isRecycleHttpChannels()
-
setRecycleHttpChannels
public void setRecycleHttpChannels(boolean recycleHttpChannels)
-
send
protected SendFailure send(HttpExchange exchange)
- Specified by:
sendin classHttpConnection
-
acquireHttpChannel
protected HttpChannelOverHTTP2 acquireHttpChannel()
-
newHttpChannel
protected HttpChannelOverHTTP2 newHttpChannel()
-
release
protected void 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
-
sweep
public boolean sweep()
- Specified by:
sweepin interfaceorg.eclipse.jetty.util.thread.Sweeper.Sweepable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classHttpConnection
-
-