public abstract class AbstractConnectionManager extends Object implements ConnectionManagerContainer, javax.resource.spi.ConnectionManager, javax.resource.spi.LazyAssociatableConnectionManager, PoolingAttributes
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractConnectionManager.Interceptors |
| Modifier and Type | Field and Description |
|---|---|
protected AbstractConnectionManager.Interceptors |
interceptors |
| Constructor and Description |
|---|
AbstractConnectionManager() |
AbstractConnectionManager(AbstractConnectionManager.Interceptors interceptors,
RecoverableTransactionManager transactionManager,
javax.resource.spi.ManagedConnectionFactory mcf,
String name) |
| Modifier and Type | Method and Description |
|---|---|
Object |
allocateConnection(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
in: mcf != null, is a deployed mcf
out: useable connection object.
|
void |
associateConnection(Object connection,
javax.resource.spi.ManagedConnectionFactory managedConnectionFactory,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
in: non-null connection object, from non-null mcf.
|
Object |
createConnectionFactory() |
void |
doFail() |
void |
doRecovery() |
void |
doStart() |
void |
doStop() |
int |
getBlockingTimeoutMilliseconds() |
int |
getConnectionCount() |
protected javax.resource.spi.ConnectionManager |
getConnectionManager() |
int |
getIdleConnectionCount() |
int |
getIdleTimeoutMinutes() |
javax.resource.spi.ManagedConnectionFactory |
getManagedConnectionFactory() |
int |
getPartitionCount() |
int |
getPartitionMaxSize() |
int |
getPartitionMinSize() |
PoolingSupport |
getPooling() |
void |
inactiveConnectionClosed(Object connection,
javax.resource.spi.ManagedConnectionFactory managedConnectionFactory) |
void |
setBlockingTimeoutMilliseconds(int timeoutMilliseconds) |
void |
setIdleTimeoutMinutes(int idleTimeoutMinutes) |
void |
setPartitionMaxSize(int maxSize) |
void |
setPartitionMinSize(int minSize) |
protected final transient AbstractConnectionManager.Interceptors interceptors
public AbstractConnectionManager()
public AbstractConnectionManager(AbstractConnectionManager.Interceptors interceptors, RecoverableTransactionManager transactionManager, javax.resource.spi.ManagedConnectionFactory mcf, String name)
public Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory in interface ConnectionManagerContainerjavax.resource.ResourceExceptionprotected javax.resource.spi.ConnectionManager getConnectionManager()
public javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
public void doRecovery()
doRecovery in interface ConnectionManagerContainerpublic Object allocateConnection(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo) throws javax.resource.ResourceException
allocateConnection in interface javax.resource.spi.ConnectionManagerjavax.resource.ResourceExceptionpublic void associateConnection(Object connection, javax.resource.spi.ManagedConnectionFactory managedConnectionFactory, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo) throws javax.resource.ResourceException
associateConnection in interface javax.resource.spi.LazyAssociatableConnectionManagerjavax.resource.ResourceExceptionpublic void inactiveConnectionClosed(Object connection, javax.resource.spi.ManagedConnectionFactory managedConnectionFactory)
inactiveConnectionClosed in interface javax.resource.spi.LazyAssociatableConnectionManagerpublic int getPartitionCount()
getPartitionCount in interface PoolingAttributespublic int getPartitionMaxSize()
getPartitionMaxSize in interface PoolingAttributespublic void setPartitionMaxSize(int maxSize)
throws InterruptedException
setPartitionMaxSize in interface PoolingAttributesInterruptedExceptionpublic int getPartitionMinSize()
getPartitionMinSize in interface PoolingAttributespublic void setPartitionMinSize(int minSize)
setPartitionMinSize in interface PoolingAttributespublic int getIdleConnectionCount()
getIdleConnectionCount in interface PoolingAttributespublic int getConnectionCount()
getConnectionCount in interface PoolingAttributespublic int getBlockingTimeoutMilliseconds()
getBlockingTimeoutMilliseconds in interface PoolingAttributespublic void setBlockingTimeoutMilliseconds(int timeoutMilliseconds)
setBlockingTimeoutMilliseconds in interface PoolingAttributespublic int getIdleTimeoutMinutes()
getIdleTimeoutMinutes in interface PoolingAttributespublic void setIdleTimeoutMinutes(int idleTimeoutMinutes)
setIdleTimeoutMinutes in interface PoolingAttributespublic PoolingSupport getPooling()
public void doFail()
Copyright © 2023. All rights reserved.