Modifier and Type | Class and Description |
---|---|
class |
BasicResourceAllocator |
Modifier and Type | Method and Description |
---|---|
ResourceAllocator |
ResourceHandle.getResourceAllocator() |
Constructor and Description |
---|
AssocWithThreadResourceHandle(Object resource,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
ConnectorXAResource(ResourceHandle handle,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
ResourceHandle(Object resource,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractConnectorAllocator
An abstract implementation of the
ResourceAllocator interface
that houses all the common implementation(s) of the various connector allocators. |
class |
ConnectorAllocator |
class |
LocalTxConnectorAllocator |
class |
NoTxConnectorAllocator |
Modifier and Type | Method and Description |
---|---|
protected ResourceHandle |
AbstractConnectorAllocator.createResourceHandle(Object resource,
ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
Modifier and Type | Field and Description |
---|---|
protected ResourceAllocator |
ConnectionPool.allocator |
Modifier and Type | Method and Description |
---|---|
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.
|
Object |
PoolManagerImpl.getResource(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info) |
Object |
PoolManager.getResource(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info)
Obtain a transactional resource such as JDBC connection
|
ResourceHandle |
ConnectionPool.getResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction txn)
returns resource from the pool.
|
ResourceHandle |
ResourcePool.getResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran) |
protected ResourceHandle |
ConnectionPool.getResourceFromPool(ResourceAllocator alloc,
ResourceSpec spec)
return resource in free list.
|
ResourceHandle |
PoolManagerImpl.getResourceFromPool(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info,
Transaction tran) |
ResourceHandle |
PoolManager.getResourceFromPool(ResourceSpec spec,
ResourceAllocator alloc,
ClientSecurityInfo info,
Transaction tran) |
protected ResourceHandle |
UnpooledResource.getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran) |
protected ResourceHandle |
ConnectionPool.getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran)
To provide an unenlisted, valid, matched resource from pool.
|
protected ResourceHandle |
AssocWithThreadResourcePool.getUnenlistedResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran)
return resource in free list.
|
protected void |
UnpooledResource.initPool(ResourceAllocator allocator) |
protected void |
ConnectionPool.initPool(ResourceAllocator allocator) |
protected ResourceHandle |
ConnectionPool.internalGetResource(ResourceSpec spec,
ResourceAllocator alloc,
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 |
UnpooledResource.prefetch(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran) |
protected ResourceHandle |
ConnectionPool.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 ResourceHandle |
AssocWithThreadResourcePool.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.
|
Modifier and Type | Method and Description |
---|---|
int |
ListDataStructure.addResource(ResourceAllocator allocator,
int count)
creates a new resource and adds to the datastructure.
|
int |
DataStructure.addResource(ResourceAllocator allocator,
int count)
creates a new resource and adds to the datastructure.
|
int |
RWLockDataStructure.addResource(ResourceAllocator allocator,
int count)
creates a new resource and adds to the datastructure.
|
Copyright © 2018. All rights reserved.