@Deprecated public class PoolingClientAsyncConnectionManager extends Object implements ClientAsyncConnectionManager, org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
Constructor and Description |
---|
PoolingClientAsyncConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioReactor)
Deprecated.
|
PoolingClientAsyncConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioReactor,
AsyncSchemeRegistry schemeRegistry)
Deprecated.
|
PoolingClientAsyncConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioReactor,
AsyncSchemeRegistry schemeRegistry,
long timeToLive,
TimeUnit timeUnit)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
closeExpiredConnections()
Deprecated.
|
void |
closeIdleConnections(long idleTimeout,
TimeUnit timeUnit)
Deprecated.
|
protected ClientAsyncConnectionFactory |
createClientAsyncConnectionFactory()
Deprecated.
|
void |
execute(org.apache.http.nio.reactor.IOEventDispatch eventDispatch)
Deprecated.
|
protected void |
finalize()
Deprecated.
|
int |
getDefaultMaxPerRoute()
Deprecated.
|
int |
getMaxPerRoute(org.apache.http.conn.routing.HttpRoute route)
Deprecated.
|
int |
getMaxTotal()
Deprecated.
|
AsyncSchemeRegistry |
getSchemeRegistry()
Deprecated.
|
org.apache.http.pool.PoolStats |
getStats(org.apache.http.conn.routing.HttpRoute route)
Deprecated.
|
org.apache.http.nio.reactor.IOReactorStatus |
getStatus()
Deprecated.
|
org.apache.http.pool.PoolStats |
getTotalStats()
Deprecated.
|
Future<ManagedClientAsyncConnection> |
leaseConnection(org.apache.http.conn.routing.HttpRoute route,
Object state,
long connectTimeout,
TimeUnit timeUnit,
org.apache.http.concurrent.FutureCallback<ManagedClientAsyncConnection> callback)
Deprecated.
|
void |
releaseConnection(ManagedClientAsyncConnection conn,
long keepalive,
TimeUnit timeUnit)
Deprecated.
|
void |
setDefaultMaxPerRoute(int max)
Deprecated.
|
void |
setMaxPerRoute(org.apache.http.conn.routing.HttpRoute route,
int max)
Deprecated.
|
void |
setMaxTotal(int max)
Deprecated.
|
void |
shutdown()
Deprecated.
|
void |
shutdown(long waitMs)
Deprecated.
|
public PoolingClientAsyncConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioReactor, AsyncSchemeRegistry schemeRegistry, long timeToLive, TimeUnit timeUnit)
public PoolingClientAsyncConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioReactor, AsyncSchemeRegistry schemeRegistry) throws org.apache.http.nio.reactor.IOReactorException
org.apache.http.nio.reactor.IOReactorException
public PoolingClientAsyncConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioReactor) throws org.apache.http.nio.reactor.IOReactorException
org.apache.http.nio.reactor.IOReactorException
protected void finalize() throws Throwable
protected ClientAsyncConnectionFactory createClientAsyncConnectionFactory()
public AsyncSchemeRegistry getSchemeRegistry()
getSchemeRegistry
in interface ClientAsyncConnectionManager
public void execute(org.apache.http.nio.reactor.IOEventDispatch eventDispatch) throws IOException
execute
in interface org.apache.http.nio.reactor.IOReactor
IOException
public org.apache.http.nio.reactor.IOReactorStatus getStatus()
getStatus
in interface org.apache.http.nio.reactor.IOReactor
public void shutdown(long waitMs) throws IOException
shutdown
in interface org.apache.http.nio.reactor.IOReactor
IOException
public void shutdown() throws IOException
shutdown
in interface org.apache.http.nio.reactor.IOReactor
IOException
public Future<ManagedClientAsyncConnection> leaseConnection(org.apache.http.conn.routing.HttpRoute route, Object state, long connectTimeout, TimeUnit timeUnit, org.apache.http.concurrent.FutureCallback<ManagedClientAsyncConnection> callback)
leaseConnection
in interface ClientAsyncConnectionManager
public void releaseConnection(ManagedClientAsyncConnection conn, long keepalive, TimeUnit timeUnit)
releaseConnection
in interface ClientAsyncConnectionManager
public org.apache.http.pool.PoolStats getTotalStats()
getTotalStats
in interface org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
public org.apache.http.pool.PoolStats getStats(org.apache.http.conn.routing.HttpRoute route)
getStats
in interface org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
public void setMaxTotal(int max)
setMaxTotal
in interface org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
public void setDefaultMaxPerRoute(int max)
setDefaultMaxPerRoute
in interface org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
public void setMaxPerRoute(org.apache.http.conn.routing.HttpRoute route, int max)
setMaxPerRoute
in interface org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
public int getMaxTotal()
getMaxTotal
in interface org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
public int getDefaultMaxPerRoute()
getDefaultMaxPerRoute
in interface org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
public int getMaxPerRoute(org.apache.http.conn.routing.HttpRoute route)
getMaxPerRoute
in interface org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
public void closeIdleConnections(long idleTimeout, TimeUnit timeUnit)
public void closeExpiredConnections()
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.