|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.gems.adapters.PoolingComponentAdapter.DefaultContext
public static class PoolingComponentAdapter.DefaultContext
The default context for a PoolingComponentAdapter.
| Constructor Summary | |
|---|---|
PoolingComponentAdapter.DefaultContext()
|
|
| Method Summary | |
|---|---|
boolean |
autostartGC()
Allow the implementation to invoke the garbace collector manually if the pool is exhausted. Returns false. |
int |
getMaxSize()
Retrieve the maximum size of the pool. Returns PoolingComponentAdapter.DEFAULT_MAX_SIZE. |
int |
getMaxWaitInMilliseconds()
Retrieve the maximum number of milliseconds to wait for a returned element. Returns PoolingComponentAdapter.FAIL_ON_WAIT. |
com.thoughtworks.proxy.ProxyFactory |
getProxyFactory()
Retrieve the ProxyFactory to use to create the pooling proxies. Returns a StandardProxyFactory. |
com.thoughtworks.proxy.kit.Resetter |
getResetter()
Retrieve the Resetter of the objects returning to the pool. Returns the PoolingComponentAdapter.DEFAULT_RESETTER. |
int |
getSerializationMode()
Retrieve the serialization mode of the pool. Returns Pool.SERIALIZATION_STANDARD. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoolingComponentAdapter.DefaultContext()
| Method Detail |
|---|
public int getMaxSize()
PoolingComponentAdapter.UNLIMITED_SIZE for unlimited growth. Returns PoolingComponentAdapter.DEFAULT_MAX_SIZE.
getMaxSize in interface PoolingComponentAdapter.Contextpublic int getMaxWaitInMilliseconds()
PoolingComponentAdapter.BLOCK_ON_WAIT or
PoolingComponentAdapter.FAIL_ON_WAIT. Returns PoolingComponentAdapter.FAIL_ON_WAIT.
getMaxWaitInMilliseconds in interface PoolingComponentAdapter.Contextpublic boolean autostartGC()
false.
autostartGC in interface PoolingComponentAdapter.Contexttrue for an internal call to System.gc()public com.thoughtworks.proxy.ProxyFactory getProxyFactory()
StandardProxyFactory.
getProxyFactory in interface PoolingComponentAdapter.ContextProxyFactorypublic com.thoughtworks.proxy.kit.Resetter getResetter()
Resetter of the objects returning to the pool. Returns the PoolingComponentAdapter.DEFAULT_RESETTER.
getResetter in interface PoolingComponentAdapter.Contextpublic int getSerializationMode()
Pool.SERIALIZATION_STANDARDPool.SERIALIZATION_NONEPool.SERIALIZATION_FORCEPool.SERIALIZATION_STANDARD.
getSerializationMode in interface PoolingComponentAdapter.Context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||