public class AssocWithThreadResourcePool extends ConnectionPool
_logger, allocator, conCreationRetryInterval_, connectionCreationRetry_, connectionCreationRetryAttempts_, dataStructureParameters, dataStructureType, ds, failAllConnections, gateway, idletime, leakDetector, localStrings, matchConnections, maxConnectionUsage_, maxPoolSize, maxWaitTime, poolInfo, poolInitialized, poolLifeCycleListener, poolWaitQueueClass, preferValidateOverRecreate, reconfigWaitQueue, resizeQuantity, resizerTask, resourceGatewayClass, resourceSelectionStrategyClass, steadyPoolSize, timer, validateAtmostPeriodInMilliSeconds_, validation, waitQueue| Constructor and Description |
|---|
AssocWithThreadResourcePool(PoolInfo poolInfo,
Hashtable env) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteResource(ResourceHandle resourceHandle)
destroys the resource
|
protected void |
freeUnenlistedResource(ResourceHandle h)
return the resource back to pool only if it is not associated with the thread.
|
protected ResourceHandle |
getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran)
return resource in free list.
|
protected void |
initializePoolDataStructure() |
protected Resizer |
initializeResizer() |
protected boolean |
isResourceUnused(ResourceHandle h)
check whether the resource is unused
|
protected ResourceHandle |
prefetch(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran)
Prefetch is called to check whether there there is a free resource is already associated with the thread
Only when prefetch is unable to find a resource, normal routine (getUnenlistedResource) will happen.
|
addResource, blockRequests, cancelResizerTask, cleanupResource, createResource, createResourceAndAddToPool, createSingleResource, createSingleResourceAndAdjustPool, dumpPoolStatus, emptyFreeConnectionsInPool, emptyPool, flushConnectionPool, freeResource, getIdleTimeout, getInvalidConnections, getMaxPoolSize, getPoolConfigurationFromJndi, getPoolInfo, getPoolStatus, getPoolWaitQueue, getReconfigWaitQueue, getReconfigWaitTime, getResizeQuantity, getResource, getResourceFromPool, getSteadyPoolSize, getWaitQueueLength, initializePoolWaitQueue, initializeResourceSelectionStrategy, initPool, internalGetResource, invalidConnectionDetected, isConnectionValid, isSelfManaged, matchConnection, notifyWaitingThreads, performMaxConnectionUsageOperation, potentialConnectionLeakFound, printConnectionLeakTrace, reclaimConnection, reconfigurePool, reconfigureSteadyPoolSize, removePoolLifeCycleListener, resizePool, resourceClosed, resourceEnlisted, resourceErrorOccurred, setMaxPoolSize, setPoolLifeCycleListener, setResourceStateToBusy, setResourceStateToFree, setSelfManaged, setSteadyPoolSize, switchOnMatching, toString, transactionCompletedpublic AssocWithThreadResourcePool(PoolInfo poolInfo, Hashtable env) throws PoolingException
PoolingExceptionprotected void initializePoolDataStructure()
throws PoolingException
initializePoolDataStructure in class ConnectionPoolPoolingExceptionprotected ResourceHandle prefetch(ResourceSpec spec, ResourceAllocator alloc, Transaction tran)
prefetch in class ConnectionPoolspec - ResourceSpecalloc - ResourceAllocatortran - Transactionprotected Resizer initializeResizer()
initializeResizer in class ConnectionPoolprotected boolean isResourceUnused(ResourceHandle h)
isResourceUnused in class ConnectionPoolh - ResourceHandleprotected ResourceHandle getUnenlistedResource(ResourceSpec spec, ResourceAllocator alloc, Transaction tran) throws PoolingException
getUnenlistedResource in class ConnectionPoolspec - ResourceSpecalloc - ResourceAllocatortran - TransactionPoolingException - Exception while getting resource from poolprotected void freeUnenlistedResource(ResourceHandle h)
freeUnenlistedResource in class ConnectionPoolh - ResourceHandlepublic void deleteResource(ResourceHandle resourceHandle)
deleteResource in interface ResourceHandlerdeleteResource in class ConnectionPoolresourceHandle - resource to be destroyedCopyright © 2019. All rights reserved.