public abstract class AbstractConnectionManager extends java.lang.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,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
allocateConnection(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
in: mcf !
|
void |
associateConnection(java.lang.Object connection,
javax.resource.spi.ManagedConnectionFactory managedConnectionFactory,
javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
in: non-null connection object, from non-null mcf.
|
java.lang.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(java.lang.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, java.lang.String name)
public java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.InterruptedException
setPartitionMaxSize in interface PoolingAttributesjava.lang.InterruptedExceptionpublic 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 doStart()
throws java.lang.Exception
java.lang.Exceptionpublic void doStop()
throws java.lang.Exception
java.lang.Exceptionpublic void doFail()
Copyright © 2003-2016 The Apache Software Foundation. All Rights Reserved.