Uses of Interface
org.eclipse.jetty.client.Connection
Package
Description
-
Uses of Connection in org.eclipse.jetty.client
Modifier and TypeMethodDescriptionAbstractConnectionPool.acquire
(boolean create) Returns an idle connection, if available; if an idle connection is not available, and the givencreate
parameter istrue
orAbstractConnectionPool.isMaximizeConnections()
istrue
, then attempts to open a new connection, if possible within the configuration of this connection pool (for example, if it does not exceed the max connection count); otherwise it attempts to open a new connection, if the number of queued requests is greater than the number of pending connections; if no connection is available even after the attempts to open, returnnull
.ConnectionPool.acquire
(boolean create) Returns an idle connection, if available; if an idle connection is not available, and the givencreate
parameter istrue
, then schedules the opening of a new connection, if possible within the configuration of this connection pool (for example, if it does not exceed the max connection count); otherwise returnsnull
.protected Connection
AbstractConnectionPool.activate()
default Connection
Request.getConnection()
Returns the connection associated with this request.Modifier and TypeMethodDescriptiondefault CompletableFuture<Connection>
Destination.newConnection()
Creates asynchronously a new, unpooled,Connection
that will be returned at a later time through the givenPromise
.static ToIntFunction<Connection>
MultiplexConnectionPool.newMaxMultiplexer
(int defaultMaxMultiplex) Returns a function that computes the max multiplex value for a givenConnection
, if possible, otherwise returns the givendefaultMaxMultiplex
value.Modifier and TypeMethodDescriptionboolean
AbstractConnectionPool.accept
(Connection connection) boolean
ConnectionPool.accept
(Connection connection) Accepts the given connection to be managed by this ConnectionPool.protected void
AbstractConnectionPool.acquired
(Connection connection) Deprecated, for removal: This API element is subject to removal in a future version.Racy API.protected boolean
AbstractConnectionPool.deactivate
(Connection connection) protected boolean
AbstractConnectionPool.idle
(Connection connection, boolean close) Deprecated, for removal: This API element is subject to removal in a future version.Racy API.boolean
AbstractConnectionPool.isActive
(Connection connection) boolean
ConnectionPool.isActive
(Connection connection) protected void
AbstractConnectionPool.onCreated
(Connection connection) Callback method invoked when a newConnection
has been created.protected void
AbstractConnectionPool.onRemoved
(Connection connection) Callback method invoked when aConnection
has been removed from this pool.boolean
AbstractConnectionPool.release
(Connection connection) boolean
ConnectionPool.release
(Connection connection) Returns the given connection, previously obtained viaConnectionPool.acquire(boolean)
, back to this ConnectionPool.boolean
ValidatingConnectionPool.release
(Connection connection) protected void
AbstractConnectionPool.released
(Connection connection) Deprecated, for removal: This API element is subject to removal in a future version.Racy API.boolean
AbstractConnectionPool.remove
(Connection connection) boolean
ConnectionPool.remove
(Connection connection) Removes the given connection from this ConnectionPool.boolean
ValidatingConnectionPool.remove
(Connection connection) protected void
AbstractConnectionPool.removed
(Connection connection) Deprecated, for removal: This API element is subject to removal in a future version.replaced byAbstractConnectionPool.onRemoved(Connection)
CompletableResponseListener.send
(Connection connection) Sends the request asynchronously via the givenConnection
and returns aCompletableFuture
that is completed when the request/response completes.Modifier and TypeMethodDescriptionvoid
Destination.newConnection
(Promise<Connection> promise) Creates asynchronously a new, unpooled,Connection
that will be returned at a later time through the givenPromise
.void
HttpClient.newConnection
(Destination destination, Promise<Connection> promise) ModifierConstructorDescriptionprotected
AbstractConnectionPool
(Destination destination, Pool.Factory<Connection> poolFactory, int initialMaxMultiplex) protected
MultiplexConnectionPool
(Destination destination, Pool.Factory<Connection> poolFactory, int initialMaxMultiplex) -
Uses of Connection in org.eclipse.jetty.client.transport
Modifier and TypeMethodDescriptionprotected abstract Connection
HttpChannel.getConnection()
HttpRequest.getConnection()
Modifier and TypeMethodDescriptionvoid
HttpDestination.accept
(Connection connection) void
HttpDestination.release
(Connection connection) boolean
HttpDestination.remove
(Connection connection) Modifier and TypeMethodDescriptionprotected void
HttpDestination.createConnection
(Promise<Connection> promise) void
HttpDestination.newConnection
(Promise<Connection> promise) -
Uses of Connection in org.eclipse.jetty.client.transport.internal
ModifierConstructorDescriptionHttpConnectionOverHTTP
(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise) -
Uses of Connection in org.eclipse.jetty.fcgi.client.transport
Modifier and TypeMethodDescriptionprotected Connection
HttpClientTransportOverFCGI.newConnection
(EndPoint endPoint, Destination destination, Promise<Connection> promise) -
Uses of Connection in org.eclipse.jetty.fcgi.client.transport.internal
ModifierConstructorDescriptionHttpConnectionOverFCGI
(EndPoint endPoint, Destination destination, Promise<Connection> promise) -
Uses of Connection in org.eclipse.jetty.http2.client.transport
Modifier and TypeMethodDescriptionprotected Connection
HttpClientTransportOverHTTP2.newConnection
(Destination destination, Session session, HTTP2Connection connection) Modifier and TypeMethodDescriptionprotected void
HttpClientTransportOverHTTP2.onClose
(Connection connection, GoAwayFrame frame) -
Uses of Connection in org.eclipse.jetty.http2.client.transport.internal
Modifier and TypeMethodDescriptionprotected Connection
HttpChannelOverHTTP2.getConnection()
protected Connection
HTTPSessionListenerPromise.newConnection
(Destination destination, Session session, HTTP2Connection connection) -
Uses of Connection in org.eclipse.jetty.http3.client.transport
Modifier and TypeMethodDescriptionprotected Connection
HttpClientTransportOverHTTP3.newConnection
(Destination destination, HTTP3SessionClient session)