Uses of Interface
org.eclipse.jetty.client.api.Connection
Package
Description
Jetty Client : Implementation and Core Classes
This package provides APIs, utility classes and an implementation of an asynchronous HTTP client.
Jetty Client : API Classes
-
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()
protected abstract Connection
HttpChannel.getConnection()
HttpRequest.getConnection()
Modifier and TypeMethodDescriptionboolean
AbstractConnectionPool.accept
(Connection connection) boolean
ConnectionPool.accept
(Connection connection) Accepts the given connection to be managed by this ConnectionPool.void
HttpDestination.accept
(Connection connection) protected void
AbstractConnectionPool.acquired
(Connection connection) protected void
LeakTrackingConnectionPool.acquired
(Connection connection) protected boolean
AbstractConnectionPool.deactivate
(Connection connection) protected boolean
AbstractConnectionPool.idle
(Connection connection, boolean close) boolean
AbstractConnectionPool.isActive
(Connection connection) boolean
ConnectionPool.isActive
(Connection connection) protected void
AbstractConnectionPool.onCreated
(Connection connection) boolean
AbstractConnectionPool.release
(Connection connection) boolean
ConnectionPool.release
(Connection connection) Returns the given connection, previously obtained viaConnectionPool.acquire(boolean)
, back to this ConnectionPool.void
HttpDestination.release
(Connection connection) boolean
ValidatingConnectionPool.release
(Connection connection) protected void
AbstractConnectionPool.released
(Connection connection) protected void
LeakTrackingConnectionPool.released
(Connection connection) boolean
AbstractConnectionPool.remove
(Connection connection) protected boolean
AbstractConnectionPool.remove
(Connection connection, boolean force) Deprecated.boolean
ConnectionPool.remove
(Connection connection) Removes the given connection from this ConnectionPool.boolean
HttpDestination.remove
(Connection connection) boolean
ValidatingConnectionPool.remove
(Connection connection) protected void
AbstractConnectionPool.removed
(Connection connection) Modifier and TypeMethodDescriptionprotected void
HttpDestination.createConnection
(Promise<Connection> promise) protected void
HttpClient.newConnection
(HttpDestination destination, Promise<Connection> promise) void
HttpDestination.newConnection
(Promise<Connection> promise) ModifierConstructorDescriptionprotected
AbstractConnectionPool
(HttpDestination destination, Pool<Connection> pool, Callback requester) DuplexConnectionPool
(HttpDestination destination, Pool<Connection> pool, Callback requester) Deprecated.MultiplexConnectionPool
(HttpDestination destination, Pool<Connection> pool, Callback requester, int maxMultiplex) Deprecated. -
Uses of Connection in org.eclipse.jetty.client.api
Modifier and TypeMethodDescriptiondefault Connection
Request.getConnection()
Returns the connection associated with this request.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
. -
Uses of Connection in org.eclipse.jetty.client.http
ModifierConstructorDescriptionHttpConnectionOverHTTP
(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise) -
Uses of Connection in org.eclipse.jetty.fcgi.client.http
Modifier and TypeMethodDescriptionprotected HttpConnectionOverFCGI
HttpClientTransportOverFCGI.newHttpConnection
(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise) ModifierConstructorDescriptionHttpConnectionOverFCGI
(EndPoint endPoint, HttpDestination destination, Promise<Connection> promise) -
Uses of Connection in org.eclipse.jetty.http2.client.http