@Contract public interface PoolManager extends TransactedPoolManager
Modifier and Type | Field and Description |
---|---|
static int |
BASIC_PASSWORD |
static String |
GENERIC_CREDENTIAL |
static int |
KERBV5 |
static int |
LOCAL_TRANSACTION |
static int |
NO_TRANSACTION |
static String |
PASSWORD_CREDENTIAL |
static int |
XA_TRANSACTION |
registerResource, resourceEnlisted, unregisterResource
static final int NO_TRANSACTION
static final int LOCAL_TRANSACTION
static final int XA_TRANSACTION
static final int BASIC_PASSWORD
static final int KERBV5
static final String PASSWORD_CREDENTIAL
static final String GENERIC_CREDENTIAL
boolean flushConnectionPool(PoolInfo poolInfo) throws PoolingException
poolInfo
- PoolingException
PoolStatus getPoolStatus(PoolInfo poolInfo)
ResourceHandle getResourceFromPool(ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info, Transaction tran) throws PoolingException, javax.resource.spi.RetryableUnavailableException
PoolingException
javax.resource.spi.RetryableUnavailableException
void createEmptyConnectionPool(PoolInfo poolInfo, ConnectorConstants.PoolType pt, Hashtable env) throws PoolingException
PoolingException
void putbackResourceToPool(ResourceHandle h, boolean errorOccurred)
void putbackBadResourceToPool(ResourceHandle h)
void putbackDirectToPool(ResourceHandle h, PoolInfo poolInfo)
void resourceClosed(ResourceHandle res)
void badResourceClosed(ResourceHandle res)
void resourceErrorOccurred(ResourceHandle res)
void resourceAbortOccurred(ResourceHandle res)
void transactionCompleted(Transaction tran, int status)
void emptyResourcePool(ResourceSpec spec)
void killPool(PoolInfo poolInfo)
void reconfigPoolProperties(ConnectorConnectionPool ccp) throws PoolingException
PoolingException
boolean switchOnMatching(PoolInfo poolInfo)
Object getResource(ResourceSpec spec, ResourceAllocator alloc, ClientSecurityInfo info) throws PoolingException, javax.resource.spi.RetryableUnavailableException
spec
- Specification for the resourcealloc
- Allocator for the resourceinfo
- Client security for this requestPoolingException
- Thrown if some error occurs while
obtaining the resourcejavax.resource.spi.RetryableUnavailableException
ResourceReferenceDescriptor getResourceReference(String jndiName, String logicalName)
void killAllPools()
void killFreeConnectionsInPools()
ResourcePool getPool(PoolInfo poolInfo)
void setSelfManaged(PoolInfo poolInfo, boolean flag)
void lazyEnlist(javax.resource.spi.ManagedConnection mc) throws javax.resource.ResourceException
javax.resource.ResourceException
void registerPoolLifeCycleListener(PoolLifeCycle poolListener)
void unregisterPoolLifeCycleListener()
Copyright © 2021. All rights reserved.