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
-
Method Summary
Modifier and TypeMethodDescriptionprotected HttpChannelOverHTTP2
void
close()
protected void
protected Iterator<HttpChannel>
int
boolean
isClosed()
boolean
protected HttpChannelOverHTTP2
protected void
normalizeRequest
(HttpRequest request) boolean
onIdleTimeout
(long idleTimeout, Throwable failure) protected boolean
release
(HttpChannelOverHTTP2 channel) send
(HttpExchange exchange) void
setRecycleHttpChannels
(boolean recycleHttpChannels) boolean
sweep()
toString()
void
Methods inherited from class org.eclipse.jetty.client.HttpConnection
destroy, getAttachment, getHttpClient, getHttpDestination, 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 Details
-
HttpConnectionOverHTTP2
-
-
Method Details
-
getSession
-
getLocalSocketAddress
- Specified by:
getLocalSocketAddress
in interfaceConnection
- Returns:
- the local socket address associated with the connection
-
getRemoteSocketAddress
- Specified by:
getRemoteSocketAddress
in 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:
getMaxMultiplex
in interfaceConnectionPool.Multiplexable
- Returns:
- the max number of requests multiplexable on a single connection
-
getHttpChannels
- Specified by:
getHttpChannels
in classHttpConnection
-
send
- Specified by:
send
in interfaceIConnection
-
upgrade
-
normalizeRequest
- Overrides:
normalizeRequest
in classHttpConnection
-
acquireHttpChannel
-
newHttpChannel
-
release
-
onIdleTimeout
- Overrides:
onIdleTimeout
in classHttpConnection
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceConnection
-
close
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceConnection
- Returns:
- whether this connection has been closed
- See Also:
-
sweep
public boolean sweep()- Specified by:
sweep
in interfaceSweeper.Sweepable
- Returns:
- whether this resource should be swept
-
toString
- Overrides:
toString
in classHttpConnection
-