Package com.mchange.v2.c3p0
Class C3P0Registry
java.lang.Object
com.mchange.v2.c3p0.C3P0Registry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set
static Set
static Set
static Map
extensionsForToken
(String pooledDataSourceIdentityToken) static Map
getConfigExtensionsForPooledDataSource
(String identityToken) static ConnectionCustomizer
getConnectionCustomizer
(String className) static ConnectionTester
getConnectionTester
(String className) static ConnectionTester
static int
static int
int
static Set
static void
static void
static PooledDataSource
pooledDataSourceByName
(String dataSourceName) Note: If multiple PooledDataSources in your JVM share the same dataSourceName, which of those multiple DataSources will be returned by this method is undefined!static Set
pooledDataSourcesByName
(String dataSourceName) static IdentityTokenized
-
Constructor Details
-
C3P0Registry
public C3P0Registry()
-
-
Method Details
-
markConfigRefreshed
public static void markConfigRefreshed() -
getDefaultConnectionTester
-
getConnectionTester
-
getConnectionCustomizer
- Throws:
SQLException
-
extensionsForToken
public static Map extensionsForToken(String pooledDataSourceIdentityToken) throws NoSuchElementException, IllegalArgumentException -
reregister
-
markClosed
-
getPooledDataSources
-
pooledDataSourcesByName
- Returns:
- the set of all PooledDataSources sharing the given dataSourceName
-
pooledDataSourceByName
Note: If multiple PooledDataSources in your JVM share the same dataSourceName, 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. null otherwise.
-
allIdentityTokens
-
allIdentityTokenized
-
allPooledDataSources
-
getNumPooledDataSources
public static int getNumPooledDataSources() -
getNumPoolsAllDataSources
- Throws:
SQLException
-
getNumThreadsAllThreadPools
- Throws:
SQLException
-
getConfigExtensionsForPooledDataSource
- Throws:
SQLException
-