public class UnpooledResource 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 |
|---|
UnpooledResource(PoolInfo poolInfo,
Hashtable env)
Creates a new instance of UnpooledResourcePool
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
freeResource(ResourceHandle resourceHandle) |
protected ResourceHandle |
getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran)
To provide an unenlisted, valid, matched resource from pool.
|
protected void |
initPool(ResourceAllocator allocator) |
protected ResourceHandle |
prefetch(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran)
Overridden in AssocWithThreadResourcePool to fetch the resource
cached in the ThreadLocal
In ConnectionPool this simply returns null.
|
protected void |
reconfigureSteadyPoolSize(int oldSteadyPoolSize,
int newSteadyPoolSize) |
void |
resourceErrorOccurred(ResourceHandle resourceHandle) |
addResource, blockRequests, cancelResizerTask, cleanupResource, createResource, createResourceAndAddToPool, createSingleResource, createSingleResourceAndAdjustPool, deleteResource, dumpPoolStatus, emptyFreeConnectionsInPool, emptyPool, flushConnectionPool, freeUnenlistedResource, getIdleTimeout, getInvalidConnections, getMaxPoolSize, getPoolConfigurationFromJndi, getPoolInfo, getPoolStatus, getPoolWaitQueue, getReconfigWaitQueue, getReconfigWaitTime, getResizeQuantity, getResource, getResourceFromPool, getSteadyPoolSize, getWaitQueueLength, initializePoolDataStructure, initializePoolWaitQueue, initializeResizer, initializeResourceSelectionStrategy, internalGetResource, invalidConnectionDetected, isConnectionValid, isResourceUnused, isSelfManaged, matchConnection, notifyWaitingThreads, performMaxConnectionUsageOperation, potentialConnectionLeakFound, printConnectionLeakTrace, reclaimConnection, reconfigurePool, removePoolLifeCycleListener, resizePool, resourceClosed, resourceEnlisted, setMaxPoolSize, setPoolLifeCycleListener, setResourceStateToBusy, setResourceStateToFree, setSelfManaged, setSteadyPoolSize, switchOnMatching, toString, transactionCompletedpublic UnpooledResource(PoolInfo poolInfo, Hashtable env) throws PoolingException
PoolingExceptionprotected void initPool(ResourceAllocator allocator) throws PoolingException
initPool in class ConnectionPoolPoolingExceptionprotected ResourceHandle prefetch(ResourceSpec spec, ResourceAllocator alloc, Transaction tran)
ConnectionPoolprefetch in class ConnectionPoolspec - ResourceSpecalloc - ResourceAllocator to create a resourcetran - Transactionprotected void reconfigureSteadyPoolSize(int oldSteadyPoolSize,
int newSteadyPoolSize)
throws PoolingException
reconfigureSteadyPoolSize in class ConnectionPoolPoolingExceptionprotected ResourceHandle getUnenlistedResource(ResourceSpec spec, ResourceAllocator alloc, Transaction tran) throws PoolingException
ConnectionPoolgetUnenlistedResource in class ConnectionPoolspec - ResourceSpecalloc - ResourceAllocatortran - TransactionPoolingException - Exception while getting resource from poolpublic void resourceErrorOccurred(ResourceHandle resourceHandle) throws IllegalStateException
resourceErrorOccurred in interface ResourcePoolresourceErrorOccurred in class ConnectionPoolIllegalStateExceptionprotected void freeResource(ResourceHandle resourceHandle)
freeResource in class ConnectionPoolCopyright © 2019. All rights reserved.