|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.loaders.jdbc.connectionfactory.ConnectionFactory
org.infinispan.loaders.jdbc.connectionfactory.PooledConnectionFactory
public class PooledConnectionFactory
Pooled connection factory based on C3P0. For a complete configuration reference, look here. The connection pool can be configured in various ways, as described here. The simplest way is by having an c3p0.properties file in the classpath. If no such file is found, default, hardcoded values will be used.
| Constructor Summary | |
|---|---|
PooledConnectionFactory()
|
|
| Method Summary | |
|---|---|
Connection |
getConnection()
Fetches a connection from the factory. |
com.mchange.v2.c3p0.ComboPooledDataSource |
getPooledDataSource()
|
void |
releaseConnection(Connection conn)
Destroys a connection. |
void |
start(ConnectionFactoryConfig config)
Starts the connection factory. |
void |
stop()
Closes the connection factory, including all allocated connections etc. |
| Methods inherited from class org.infinispan.loaders.jdbc.connectionfactory.ConnectionFactory |
|---|
getConnectionFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PooledConnectionFactory()
| Method Detail |
|---|
public void start(ConnectionFactoryConfig config)
throws CacheLoaderException
ConnectionFactory
start in class ConnectionFactoryCacheLoaderExceptionpublic void stop()
ConnectionFactory
stop in class ConnectionFactory
public Connection getConnection()
throws CacheLoaderException
ConnectionFactory
getConnection in class ConnectionFactoryCacheLoaderExceptionpublic void releaseConnection(Connection conn)
ConnectionFactory
releaseConnection in class ConnectionFactorypublic com.mchange.v2.c3p0.ComboPooledDataSource getPooledDataSource()
|
Google Analytics | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||