public static interface PoolingComponentAdapter.Context
| Modifier and Type | Method and Description |
|---|---|
boolean |
autostartGC()
Allow the implementation to invoke the garbace collector manually if the pool is
exhausted.
|
int |
getMaxSize()
Retrieve the maximum size of the pool.
|
int |
getMaxWaitInMilliseconds()
Retrieve the maximum number of milliseconds to wait for a returned element.
|
com.thoughtworks.proxy.ProxyFactory |
getProxyFactory()
Retrieve the ProxyFactory to use to create the pooling proxies.
|
com.thoughtworks.proxy.kit.Resetter |
getResetter()
Retrieve the
Resetter of the objects returning to the pool. |
int |
getSerializationMode()
Retrieve the serialization mode of the pool.
|
int getMaxSize()
PoolingComponentAdapter.UNLIMITED_SIZE for unlimited growth.int getMaxWaitInMilliseconds()
PoolingComponentAdapter.BLOCK_ON_WAIT or
PoolingComponentAdapter.FAIL_ON_WAIT.boolean autostartGC()
true for an internal call to System.gc()com.thoughtworks.proxy.ProxyFactory getProxyFactory()
ProxyFactorycom.thoughtworks.proxy.kit.Resetter getResetter()
Resetter of the objects returning to the pool.int getSerializationMode()
Pool.SERIALIZATION_STANDARDPool.SERIALIZATION_NONEPool.SERIALIZATION_FORCE