void |
ConnectionPool.addResource(ResourceAllocator alloc) |
add a resource with status busy and not enlisted
|
ResourceHandle |
ConnectionPool.createResource(ResourceAllocator alloc) |
|
ResourceHandle |
ResourceHandler.createResource(ResourceAllocator allocator) |
create a new resource using the given resource-allocator
|
protected ResourceHandle |
ConnectionPool.createSingleResource(ResourceAllocator resourceAllocator) |
Method to be used to create resource, instead of calling ResourceAllocator.createConfigBean().
|
protected ResourceHandle |
ConnectionPool.createSingleResourceAndAdjustPool(ResourceAllocator alloc,
ResourceSpec spec) |
This method will be called from the getUnenlistedResource method if
we detect a failAllConnection flag.
|
ResourceHandle |
ConnectionPool.getResource(ResourceSpec spec,
ResourceAllocator alloc,
jakarta.transaction.Transaction txn) |
returns resource from the pool.
|
Object |
PoolManager.getResource(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
Obtain a transactional resource such as JDBC connection
|
Object |
PoolManagerImpl.getResource(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
|
ResourceHandle |
ResourcePool.getResource(ResourceSpec spec,
ResourceAllocator alloc,
jakarta.transaction.Transaction tran) |
|
protected ResourceHandle |
ConnectionPool.getResourceFromPool(ResourceAllocator alloc,
ResourceSpec spec) |
return resource in free list.
|
ResourceHandle |
PoolManager.getResourceFromPool(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info,
jakarta.transaction.Transaction tran) |
|
ResourceHandle |
PoolManagerImpl.getResourceFromPool(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info,
jakarta.transaction.Transaction tran) |
|
protected ResourceHandle |
AssocWithThreadResourcePool.getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
jakarta.transaction.Transaction tran) |
return resource in free list.
|
protected ResourceHandle |
ConnectionPool.getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
jakarta.transaction.Transaction tran) |
To provide an unenlisted, valid, matched resource from pool.
|
protected ResourceHandle |
UnpooledResource.getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
jakarta.transaction.Transaction tran) |
|
protected void |
ConnectionPool.initPool(ResourceAllocator allocator) |
|
protected void |
UnpooledResource.initPool(ResourceAllocator allocator) |
|
protected ResourceHandle |
ConnectionPool.internalGetResource(ResourceSpec spec,
ResourceAllocator alloc,
jakarta.transaction.Transaction tran) |
|
protected boolean |
ConnectionPool.isConnectionValid(ResourceHandle h,
ResourceAllocator alloc) |
Check whether the connection is valid
|
protected boolean |
ConnectionPool.matchConnection(ResourceHandle resource,
ResourceAllocator alloc) |
check whether the connection retrieved from the pool matches with the request.
|
protected ResourceHandle |
AssocWithThreadResourcePool.prefetch(ResourceSpec spec,
ResourceAllocator alloc,
jakarta.transaction.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.
|
protected ResourceHandle |
ConnectionPool.prefetch(ResourceSpec spec,
ResourceAllocator alloc,
jakarta.transaction.Transaction tran) |
Overridden in AssocWithThreadResourcePool to fetch the resource
cached in the ThreadLocal
In ConnectionPool this simply returns null.
|
protected ResourceHandle |
UnpooledResource.prefetch(ResourceSpec spec,
ResourceAllocator alloc,
jakarta.transaction.Transaction tran) |
|