public class HttpClientPoolFactory
extends org.apache.commons.pool.BasePoolableObjectFactory
Note that the Apache HttpClient maintains its own connection pool and does not participate in Apache Commons pool lifecycle other than creating HTTPRequests.
| Modifier and Type | Method and Description |
|---|---|
void |
destroyObject(Object obj) |
Object |
makeObject() |
void |
passivateObject(Object obj) |
void |
shutdown()
Shutdown the pooling factory and any backing resources.
|
public Object makeObject() throws Exception
makeObject in interface org.apache.commons.pool.PoolableObjectFactorymakeObject in class org.apache.commons.pool.BasePoolableObjectFactoryExceptionpublic void passivateObject(Object obj) throws Exception
passivateObject in interface org.apache.commons.pool.PoolableObjectFactorypassivateObject in class org.apache.commons.pool.BasePoolableObjectFactoryExceptionpublic void destroyObject(Object obj) throws Exception
destroyObject in interface org.apache.commons.pool.PoolableObjectFactorydestroyObject in class org.apache.commons.pool.BasePoolableObjectFactoryExceptionpublic void shutdown()
Copyright © 2014. All Rights Reserved.