C - Typ of the pure connectionpublic class PooledPhynixxManagedConnectionFactory<C extends IPhynixxConnection> extends PhynixxManagedConnectionFactory<C>
PhynixxManagedConnectionFactory.| Constructor and Description |
|---|
PooledPhynixxManagedConnectionFactory() |
PooledPhynixxManagedConnectionFactory(IPhynixxConnectionFactory<C> connectionFactory) |
PooledPhynixxManagedConnectionFactory(IPhynixxConnectionFactory<C> connectionFactory,
org.apache.commons.pool2.impl.GenericObjectPoolConfig genericPoolConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes all currently opened connections
|
void |
connectionFreed(IManagedConnectionEvent<C> event)
the connection is set free an released from the pool
|
void |
connectionReleased(IManagedConnectionEvent<C> event)
the connection is sent back to the pool
|
void |
freeConnection(IPhynixxManagedConnection<C> connection) |
Class<C> |
getConnectionInterface() |
IPhynixxManagedConnection<C> |
getManagedConnection()
the returned connection has to be explicitly closed
|
void |
releaseConnection(IPhynixxManagedConnection<C> connection)
closes the connection an releases it to the pool
|
void |
setGenericPoolConfig(org.apache.commons.pool2.impl.GenericObjectPoolConfig cfg)
closes the current pool -if existing- and instanciates a new pool
|
addManagedConnectionDecorator, getConnection, getConnectionFactory, getLoggerSystemStrategy, getManagedConnectionDecorators, instantiateConnection, isAutocommitAware, isSynchronizeConnection, setAutocommitAware, setConnectionFactory, setLoggerSystemStrategy, setSynchronizeConnectionconnectionCommitted, connectionCommitting, connectionErrorOccurred, connectionPrepared, connectionPreparing, connectionRecovered, connectionRecovering, connectionRequiresTransaction, connectionRequiresTransactionExecuted, connectionReset, connectionRolledback, connectionRollingBackclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnectionCommitted, connectionCommitting, connectionErrorOccurred, connectionPrepared, connectionPreparing, connectionRecovered, connectionRecovering, connectionRequiresTransaction, connectionRequiresTransactionExecuted, connectionReset, connectionRolledback, connectionRollingBackpublic PooledPhynixxManagedConnectionFactory()
public PooledPhynixxManagedConnectionFactory(IPhynixxConnectionFactory<C> connectionFactory)
public PooledPhynixxManagedConnectionFactory(IPhynixxConnectionFactory<C> connectionFactory, org.apache.commons.pool2.impl.GenericObjectPoolConfig genericPoolConfig)
public void setGenericPoolConfig(org.apache.commons.pool2.impl.GenericObjectPoolConfig cfg)
throws Exception
cfg - Exceptionpublic IPhynixxManagedConnection<C> getManagedConnection()
IPhynixxManagedConnectionFactorygetManagedConnection in interface IPhynixxManagedConnectionFactory<C extends IPhynixxConnection>getManagedConnection in class PhynixxManagedConnectionFactory<C extends IPhynixxConnection>public void releaseConnection(IPhynixxManagedConnection<C> connection)
connection - public void freeConnection(IPhynixxManagedConnection<C> connection)
public void close()
IPhynixxManagedConnectionFactoryclose in interface IPhynixxConnectionFactory<C extends IPhynixxConnection>close in interface IPhynixxManagedConnectionFactory<C extends IPhynixxConnection>close in class PhynixxManagedConnectionFactory<C extends IPhynixxConnection>public Class<C> getConnectionInterface()
getConnectionInterface in interface IPhynixxConnectionFactory<C extends IPhynixxConnection>getConnectionInterface in class PhynixxManagedConnectionFactory<C extends IPhynixxConnection>public void connectionReleased(IManagedConnectionEvent<C> event)
connectionReleased in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection>connectionReleased in class PhynixxManagedConnectionFactory<C extends IPhynixxConnection>event - current connectionpublic void connectionFreed(IManagedConnectionEvent<C> event)
connectionFreed in interface IPhynixxManagedConnectionListener<C extends IPhynixxConnection>connectionFreed in class PhynixxManagedConnectionFactory<C extends IPhynixxConnection>Copyright © 2017. All rights reserved.