Package org.apache.http.impl.nio.conn
Class PoolingClientAsyncConnectionManager
- java.lang.Object
-
- org.apache.http.impl.nio.conn.PoolingClientAsyncConnectionManager
-
- All Implemented Interfaces:
ClientAsyncConnectionManager
,org.apache.http.nio.reactor.IOReactor
,org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
@Deprecated public class PoolingClientAsyncConnectionManager extends java.lang.Object implements ClientAsyncConnectionManager, org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
Deprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
PoolingClientAsyncConnectionManager.InternalPoolEntryCallback
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description private ClientAsyncConnectionFactory
connFactory
Deprecated.private org.apache.http.nio.reactor.ConnectingIOReactor
ioreactor
Deprecated.private org.apache.commons.logging.Log
log
Deprecated.private HttpNIOConnPool
pool
Deprecated.private AsyncSchemeRegistry
schemeRegistry
Deprecated.
-
Constructor Summary
Constructors Constructor 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, java.util.concurrent.TimeUnit tunit)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
closeExpiredConnections()
Deprecated.void
closeIdleConnections(long idleTimeout, java.util.concurrent.TimeUnit tunit)
Deprecated.protected ClientAsyncConnectionFactory
createClientAsyncConnectionFactory()
Deprecated.void
execute(org.apache.http.nio.reactor.IOEventDispatch eventDispatch)
Deprecated.protected void
finalize()
Deprecated.private java.lang.String
format(org.apache.http.conn.routing.HttpRoute route, java.lang.Object state)
Deprecated.private java.lang.String
format(HttpPoolEntry entry)
Deprecated.private java.lang.String
formatStats(org.apache.http.conn.routing.HttpRoute route)
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.java.util.concurrent.Future<ManagedClientAsyncConnection>
leaseConnection(org.apache.http.conn.routing.HttpRoute route, java.lang.Object state, long connectTimeout, java.util.concurrent.TimeUnit tunit, org.apache.http.concurrent.FutureCallback<ManagedClientAsyncConnection> callback)
Deprecated.void
releaseConnection(ManagedClientAsyncConnection conn, long keepalive, java.util.concurrent.TimeUnit tunit)
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.
-
-
-
Field Detail
-
log
private final org.apache.commons.logging.Log log
Deprecated.
-
ioreactor
private final org.apache.http.nio.reactor.ConnectingIOReactor ioreactor
Deprecated.
-
pool
private final HttpNIOConnPool pool
Deprecated.
-
schemeRegistry
private final AsyncSchemeRegistry schemeRegistry
Deprecated.
-
connFactory
private final ClientAsyncConnectionFactory connFactory
Deprecated.
-
-
Constructor Detail
-
PoolingClientAsyncConnectionManager
public PoolingClientAsyncConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor, AsyncSchemeRegistry schemeRegistry, long timeToLive, java.util.concurrent.TimeUnit tunit)
Deprecated.
-
PoolingClientAsyncConnectionManager
public PoolingClientAsyncConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor, AsyncSchemeRegistry schemeRegistry) throws org.apache.http.nio.reactor.IOReactorException
Deprecated.- Throws:
org.apache.http.nio.reactor.IOReactorException
-
PoolingClientAsyncConnectionManager
public PoolingClientAsyncConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor) throws org.apache.http.nio.reactor.IOReactorException
Deprecated.- Throws:
org.apache.http.nio.reactor.IOReactorException
-
-
Method Detail
-
finalize
protected void finalize() throws java.lang.Throwable
Deprecated.- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
createClientAsyncConnectionFactory
protected ClientAsyncConnectionFactory createClientAsyncConnectionFactory()
Deprecated.
-
getSchemeRegistry
public AsyncSchemeRegistry getSchemeRegistry()
Deprecated.- Specified by:
getSchemeRegistry
in interfaceClientAsyncConnectionManager
-
execute
public void execute(org.apache.http.nio.reactor.IOEventDispatch eventDispatch) throws java.io.IOException
Deprecated.- Specified by:
execute
in interfaceorg.apache.http.nio.reactor.IOReactor
- Throws:
java.io.IOException
-
getStatus
public org.apache.http.nio.reactor.IOReactorStatus getStatus()
Deprecated.- Specified by:
getStatus
in interfaceorg.apache.http.nio.reactor.IOReactor
-
shutdown
public void shutdown(long waitMs) throws java.io.IOException
Deprecated.- Specified by:
shutdown
in interfaceorg.apache.http.nio.reactor.IOReactor
- Throws:
java.io.IOException
-
shutdown
public void shutdown() throws java.io.IOException
Deprecated.- Specified by:
shutdown
in interfaceorg.apache.http.nio.reactor.IOReactor
- Throws:
java.io.IOException
-
format
private java.lang.String format(org.apache.http.conn.routing.HttpRoute route, java.lang.Object state)
Deprecated.
-
formatStats
private java.lang.String formatStats(org.apache.http.conn.routing.HttpRoute route)
Deprecated.
-
format
private java.lang.String format(HttpPoolEntry entry)
Deprecated.
-
leaseConnection
public java.util.concurrent.Future<ManagedClientAsyncConnection> leaseConnection(org.apache.http.conn.routing.HttpRoute route, java.lang.Object state, long connectTimeout, java.util.concurrent.TimeUnit tunit, org.apache.http.concurrent.FutureCallback<ManagedClientAsyncConnection> callback)
Deprecated.- Specified by:
leaseConnection
in interfaceClientAsyncConnectionManager
-
releaseConnection
public void releaseConnection(ManagedClientAsyncConnection conn, long keepalive, java.util.concurrent.TimeUnit tunit)
Deprecated.- Specified by:
releaseConnection
in interfaceClientAsyncConnectionManager
-
getTotalStats
public org.apache.http.pool.PoolStats getTotalStats()
Deprecated.- Specified by:
getTotalStats
in interfaceorg.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
-
getStats
public org.apache.http.pool.PoolStats getStats(org.apache.http.conn.routing.HttpRoute route)
Deprecated.- Specified by:
getStats
in interfaceorg.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
-
setMaxTotal
public void setMaxTotal(int max)
Deprecated.- Specified by:
setMaxTotal
in interfaceorg.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
-
setDefaultMaxPerRoute
public void setDefaultMaxPerRoute(int max)
Deprecated.- Specified by:
setDefaultMaxPerRoute
in interfaceorg.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
-
setMaxPerRoute
public void setMaxPerRoute(org.apache.http.conn.routing.HttpRoute route, int max)
Deprecated.- Specified by:
setMaxPerRoute
in interfaceorg.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
-
getMaxTotal
public int getMaxTotal()
Deprecated.- Specified by:
getMaxTotal
in interfaceorg.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
-
getDefaultMaxPerRoute
public int getDefaultMaxPerRoute()
Deprecated.- Specified by:
getDefaultMaxPerRoute
in interfaceorg.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
-
getMaxPerRoute
public int getMaxPerRoute(org.apache.http.conn.routing.HttpRoute route)
Deprecated.- Specified by:
getMaxPerRoute
in interfaceorg.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>
-
closeIdleConnections
public void closeIdleConnections(long idleTimeout, java.util.concurrent.TimeUnit tunit)
Deprecated.
-
closeExpiredConnections
public void closeExpiredConnections()
Deprecated.
-
-