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 ConnectionManagerContainer
javax.resource.ResourceException
protected javax.resource.spi.ConnectionManager getConnectionManager()
public javax.resource.spi.ManagedConnectionFactory getManagedConnectionFactory()
public void doRecovery()
doRecovery
in interface ConnectionManagerContainer
public Object allocateConnection(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo) throws javax.resource.ResourceException
allocateConnection
in interface javax.resource.spi.ConnectionManager
javax.resource.ResourceException
public void associateConnection(Object connection, javax.resource.spi.ManagedConnectionFactory managedConnectionFactory, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo) throws javax.resource.ResourceException
associateConnection
in interface javax.resource.spi.LazyAssociatableConnectionManager
javax.resource.ResourceException
public void inactiveConnectionClosed(Object connection, javax.resource.spi.ManagedConnectionFactory managedConnectionFactory)
inactiveConnectionClosed
in interface javax.resource.spi.LazyAssociatableConnectionManager
public int getPartitionCount()
getPartitionCount
in interface PoolingAttributes
public int getPartitionMaxSize()
getPartitionMaxSize
in interface PoolingAttributes
public void setPartitionMaxSize(int maxSize) throws InterruptedException
setPartitionMaxSize
in interface PoolingAttributes
InterruptedException
public int getPartitionMinSize()
getPartitionMinSize
in interface PoolingAttributes
public void setPartitionMinSize(int minSize)
setPartitionMinSize
in interface PoolingAttributes
public int getIdleConnectionCount()
getIdleConnectionCount
in interface PoolingAttributes
public int getConnectionCount()
getConnectionCount
in interface PoolingAttributes
public int getBlockingTimeoutMilliseconds()
getBlockingTimeoutMilliseconds
in interface PoolingAttributes
public void setBlockingTimeoutMilliseconds(int timeoutMilliseconds)
setBlockingTimeoutMilliseconds
in interface PoolingAttributes
public int getIdleTimeoutMinutes()
getIdleTimeoutMinutes
in interface PoolingAttributes
public void setIdleTimeoutMinutes(int idleTimeoutMinutes)
setIdleTimeoutMinutes
in interface PoolingAttributes
public PoolingSupport getPooling()
public void doFail()
Copyright © 2018. All rights reserved.