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 HttpChannelOverHTTP2
acquireHttpChannel()
void
close()
protected void
close(java.lang.Throwable failure)
org.eclipse.jetty.http2.api.Session
getSession()
boolean
isClosed()
boolean
isRecycleHttpChannels()
protected HttpChannelOverHTTP2
newHttpChannel()
boolean
onIdleTimeout(long idleTimeout)
protected void
release(HttpChannelOverHTTP2 channel)
protected SendFailure
send(HttpExchange exchange)
void
setRecycleHttpChannels(boolean recycleHttpChannels)
boolean
sweep()
java.lang.String
toString()
-
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:
send
in classHttpConnection
-
acquireHttpChannel
protected HttpChannelOverHTTP2 acquireHttpChannel()
-
newHttpChannel
protected HttpChannelOverHTTP2 newHttpChannel()
-
release
protected void release(HttpChannelOverHTTP2 channel)
-
onIdleTimeout
public boolean onIdleTimeout(long idleTimeout)
- Overrides:
onIdleTimeout
in classHttpConnection
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceConnection
-
close
protected void close(java.lang.Throwable failure)
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceConnection
-
sweep
public boolean sweep()
- Specified by:
sweep
in interfaceorg.eclipse.jetty.util.thread.Sweeper.Sweepable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classHttpConnection
-
-