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.PoolableObjectFactory
makeObject
in class org.apache.commons.pool.BasePoolableObjectFactory
Exception
public void passivateObject(Object obj) throws Exception
passivateObject
in interface org.apache.commons.pool.PoolableObjectFactory
passivateObject
in class org.apache.commons.pool.BasePoolableObjectFactory
Exception
public void destroyObject(Object obj) throws Exception
destroyObject
in interface org.apache.commons.pool.PoolableObjectFactory
destroyObject
in class org.apache.commons.pool.BasePoolableObjectFactory
Exception
public void shutdown()
Copyright © 2015. All Rights Reserved.