|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.0.0) E17483-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.jbo.pool.ResourcePool
oracle.jbo.server.QueryCollectionPool
public class QueryCollectionPool
This class maintains strong references to QueryCollection's in shared AM.
| Field Summary |
|---|
| Fields inherited from class oracle.jbo.pool.ResourcePool |
|---|
MAX_WAIT_TIME, MAX_WEIGHT_DEFAULT, mLock, mLogger, WAIT_TIME_INCREMENT |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.Object removeResource(java.lang.Object resource)
ResourcePool
removeResource 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()
ResourcePool
getMaxInactiveAge 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()
ResourcePool
getMaxAvailableSize in class ResourcePoolprotected int getTimeToLive()
ResourcePool
getTimeToLive in class ResourcePoolprotected double getMaxWeight()
getMaxWeight in class ResourcePoolgetMaxWeight()protected double getWeight(ResourceInfo resourceInfo)
getWeight in class ResourcePoolresourceInfo - the resource to evaluate
getWeight(ResourceInfo)public void dumpPoolStatistics(java.io.PrintWriter pw)
ResourcePool
dumpPoolStatistics in class ResourcePoolResourcePool.createPoolLogger()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.0.0) E17483-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||