public static class Pooled.DefaultContext extends Object implements Pooled.Context
| Constructor and Description |
|---|
Pooled.DefaultContext() |
| 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.
|
ProxyFactory |
getProxyFactory()
Retrieve the ProxyFactory to use to create the pooling proxies.
|
Resetter |
getResetter()
Retrieve the
Resetter of the objects returning to the pool. |
int |
getSerializationMode()
Retrieve the serialization mode of the pool.
|
public Pooled.DefaultContext()
public int getMaxSize()
Pooled.UNLIMITED_SIZE for unlimited growth. Returns Pooled.DEFAULT_MAX_SIZE.getMaxSize in interface Pooled.Contextpublic int getMaxWaitInMilliseconds()
Pooled.BLOCK_ON_WAIT or
Pooled.FAIL_ON_WAIT. Returns Pooled.FAIL_ON_WAIT.getMaxWaitInMilliseconds in interface Pooled.Contextpublic boolean autostartGC()
false.autostartGC in interface Pooled.Contexttrue for an internal call to System.gc()public ProxyFactory getProxyFactory()
StandardProxyFactory.getProxyFactory in interface Pooled.ContextProxyFactorypublic Resetter getResetter()
Resetter of the objects returning to the pool. Returns the Pooled.DEFAULT_RESETTER.getResetter in interface Pooled.Contextpublic int getSerializationMode()
Pool.SERIALIZATION_STANDARD.getSerializationMode in interface Pooled.ContextCopyright © 2003-2014 Codehaus. All Rights Reserved.