Class C3P0Registry
java.lang.Object
com.mchange.v2.c3p0.C3P0Registry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Setstatic Setstatic Setstatic MapextensionsForToken(String pooledDataSourceIdentityToken) static MapgetConfigExtensionsForPooledDataSource(String identityToken) static ConnectionCustomizergetConnectionCustomizer(String className) static ConnectionTestergetConnectionTester(String className) static TaskRunnerFactorystatic intstatic intintstatic Setstatic TaskRunnerFactorygetTaskRunnerFactory(String className) static voidstatic voidstatic PooledDataSourcepooledDataSourceByName(String dataSourceName) Note: If multiple PooledDataSources in your JVM share the samedataSourceName, which of those multiple DataSources will be returned by this method is undefined!static SetpooledDataSourcesByName(String dataSourceName) static IdentityTokenized
-
Constructor Details
-
C3P0Registry
public C3P0Registry()
-
-
Method Details
-
markConfigRefreshed
public static void markConfigRefreshed() -
getConnectionTester
-
getDefaultTaskRunnerFactory
-
getTaskRunnerFactory
-
getConnectionCustomizer
- Throws:
SQLException
-
extensionsForToken
public static Map extensionsForToken(String pooledDataSourceIdentityToken) throws NoSuchElementException, IllegalArgumentException -
reregister
-
markClosed
-
getPooledDataSources
-
pooledDataSourcesByName
-
pooledDataSourceByName
Note: If multiple PooledDataSources in your JVM share the samedataSourceName, which of those multiple DataSources will be returned by this method is undefined!- Returns:
- a PooledDataSource with the given
dataSourceName, if at least one exists.nullotherwise.
-
allIdentityTokens
-
allIdentityTokenized
-
allPooledDataSources
-
getNumPooledDataSources
public static int getNumPooledDataSources() -
getNumPoolsAllDataSources
- Throws:
SQLException
-
getNumThreadsAllThreadPools
- Throws:
SQLException
-
getConfigExtensionsForPooledDataSource
- Throws:
SQLException
-