Package | Description |
---|---|
org.eclipse.jetty.client |
Jetty Client : Implementation and Core Classes
This package provides APIs, utility classes and an implementation of an asynchronous HTTP client.
|
org.eclipse.jetty.client.api |
Jetty Client : API Classes
|
org.eclipse.jetty.client.http |
Modifier and Type | Method and Description |
---|---|
Connection |
ConnectionPool.acquire()
Returns an idle connection, if available, or schedules the opening
of a new connection and returns
null . |
Connection |
AbstractConnectionPool.acquire() |
protected Connection |
AbstractConnectionPool.acquire(boolean create)
Returns an idle connection, if available;
if an idle connection is not available, and the given
create parameter is true
or AbstractConnectionPool.isMaximizeConnections() is true ,
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, return null . |
protected Connection |
AbstractConnectionPool.activate() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Connection> |
AbstractConnectionPool.getActiveConnections()
Deprecated.
Relying on this method indicates a reliance on the implementation details.
|
java.util.Queue<Connection> |
AbstractConnectionPool.getIdleConnections()
Deprecated.
Relying on this method indicates a reliance on the implementation details.
|
Modifier and Type | Method and Description |
---|---|
protected void |
LeakTrackingConnectionPool.acquired(Connection connection) |
protected void |
AbstractConnectionPool.acquired(Connection connection) |
void |
HttpDestination.close(Connection connection)
Deprecated.
use
HttpDestination.remove(Connection) instead |
protected boolean |
AbstractConnectionPool.deactivate(Connection connection) |
protected boolean |
AbstractConnectionPool.idle(Connection connection,
boolean close) |
boolean |
ConnectionPool.isActive(Connection connection) |
boolean |
AbstractConnectionPool.isActive(Connection connection) |
protected void |
AbstractConnectionPool.onCreated(Connection connection) |
boolean |
ValidatingConnectionPool.release(Connection connection) |
void |
HttpDestination.release(Connection connection) |
boolean |
ConnectionPool.release(Connection connection)
Returns the given connection, previously obtained via
ConnectionPool.acquire() ,
back to this ConnectionPool. |
boolean |
AbstractConnectionPool.release(Connection connection) |
protected void |
LeakTrackingConnectionPool.released(Connection connection) |
protected void |
AbstractConnectionPool.released(Connection connection) |
boolean |
ValidatingConnectionPool.remove(Connection connection) |
boolean |
HttpDestination.remove(Connection connection) |
boolean |
ConnectionPool.remove(Connection connection)
Removes the given connection from this ConnectionPool.
|
boolean |
AbstractConnectionPool.remove(Connection connection) |
protected boolean |
AbstractConnectionPool.remove(Connection connection,
boolean force) |
protected void |
AbstractConnectionPool.removed(Connection connection) |
protected abstract SendFailure |
HttpDestination.send(Connection connection,
HttpExchange exchange) |
Modifier and Type | Method and Description |
---|---|
protected void |
HttpDestination.createConnection(Promise<Connection> promise) |
protected void |
HttpClient.newConnection(HttpDestination destination,
Promise<Connection> promise) |
void |
HttpDestination.newConnection(Promise<Connection> promise) |
Constructor and Description |
---|
AbstractConnectionPool(HttpDestination destination,
Pool<Connection> pool,
Callback requester) |
DuplexConnectionPool(HttpDestination destination,
Pool<Connection> pool,
Callback requester) |
MultiplexConnectionPool(HttpDestination destination,
Pool<Connection> pool,
Callback requester,
int maxMultiplex) |
Modifier and Type | Method and Description |
---|---|
void |
Destination.newConnection(Promise<Connection> promise)
Creates asynchronously a new, unpooled,
Connection that will be returned
at a later time through the given Promise . |
Modifier and Type | Method and Description |
---|---|
protected SendFailure |
HttpDestinationOverHTTP.send(Connection connection,
HttpExchange exchange) |
Modifier and Type | Method and Description |
---|---|
protected HttpConnectionOverHTTP |
HttpClientTransportOverHTTP.newHttpConnection(EndPoint endPoint,
HttpDestination destination,
Promise<Connection> promise) |
Constructor and Description |
---|
HttpConnectionOverHTTP(EndPoint endPoint,
HttpDestination destination,
Promise<Connection> promise) |
Copyright © 1995–2021 Webtide. All rights reserved.