public class QueryCollectionPool extends ResourcePool
ResourcePool.AvailableListSelectorMAX_WAIT_TIME, MAX_WEIGHT_DEFAULT, mLock, mLogger, WAIT_TIME_INCREMENT| Modifier and Type | Method and Description | 
|---|---|
| protected ResourcePoolLogger | createPoolLogger() | 
| void | dumpPoolStatistics(java.io.PrintWriter pw)Dump pool statistics to the specified printwriter. | 
| protected int | getMaxAvailableSize()Return the maximum number of available instances that should exist in the
 pool after pool garbage collection. | 
| protected int | getMaxInactiveAge()Return the duration in milliseconds that a resource may remain available
 before it is considered inactive. | 
| protected double | getMaxWeight()Returns the maximum weight allowed in the query collection pool. | 
| protected int | getMinAvailableSize()Return the minimum number of available instances that should exist in the
 pool after pool garbage collection. | 
| protected java.lang.Object | getResourcePoolKey() | 
| protected int | getTimeToLive()Return the duration in milliseconds that a resource may remain in the
 pool. | 
| protected double | getWeight(ResourceInfo resourceInfo)Calculates the weight of the resource. | 
| java.lang.Object | instantiateResource(java.util.Properties properties)Instantiate a new pooled resource. | 
| java.lang.Object | removeResource(java.lang.Object resource)Remove a resource from the pool. | 
addResource, addToRemoveList, allocateResource, beforeResourceFinalized, canAllocateResource, canFinalizeResource, canRemoveResource, createInitializer, createResource, decrementRefCount, destroy, finalizeResource, getAvailableResourceCount, getCreationTimeMillis, getInitializer, getInitPoolSize, getLastUpdate, getLRUAvailableIterator, getMaxPoolSize, getMaxWaitTime, getMRUAvailableIterator, getName, getRefCount, getResource, getResourceCount, getResourceDetails, getResourceInfo, getResourcePoolStatistics, getState, getSyncLock, getTimeToCreateMillis, hasResource, incrementRefCount, initialize, isAvailable, isSuspended, isUseExclusive, logPoolEvent, markResourcesForRemove, prepareForGCRemove, prepareForGCRemove, prepareResource, releaseResource, removeFromManager, removeResourceInternal, removeResources, resourceStateChanged, resumeResource, seekLRUAvailableResource, seekMRUAvailableResource, setAvailable, setAvailable, setState, suspendResource, useResource, wakeuppublic java.lang.Object removeResource(java.lang.Object resource)
ResourcePoolremoveResource in class ResourcePoolpublic java.lang.Object instantiateResource(java.util.Properties properties)
ResourcePoolResourcePool.useResource(Properties)
 if it is necessary to create a new pooled resource.  Applications should
 implement this method to return a new instance of a pooled resource.instantiateResource in class ResourcePoolprotected ResourcePoolLogger createPoolLogger()
createPoolLogger in class ResourcePoolprotected java.lang.Object getResourcePoolKey()
getResourcePoolKey in class ResourcePoolprotected int getMaxInactiveAge()
ResourcePoolgetMaxInactiveAge in class ResourcePoolResourcePool.getMinAvailableSize()protected int getMinAvailableSize()
ResourcePoolAn available resource is defined as inactive if it has not been used for a duration longer than the pool's maximum inactive age.
getMinAvailableSize in class ResourcePoolResourcePool.getMaxInactiveAge()protected int getMaxAvailableSize()
ResourcePoolgetMaxAvailableSize in class ResourcePoolprotected int getTimeToLive()
ResourcePoolgetTimeToLive in class ResourcePoolprotected double getMaxWeight()
getMaxWeight in class ResourcePoolgetMaxWeight()protected double getWeight(ResourceInfo resourceInfo)
getWeight in class ResourcePoolresourceInfo - the resource to evaluategetWeight(ResourceInfo)public void dumpPoolStatistics(java.io.PrintWriter pw)
ResourcePooldumpPoolStatistics in class ResourcePoolResourcePool.createPoolLogger()