Class Pools
java.lang.Object
org.mariadb.jdbc.pool.Pools
Pools
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ScheduledThreadPoolExecutorprivate static final AtomicIntegerprivate static final Map<Configuration, Pools.PoolHolder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose()Close all pools and release the driver's shared threads (pool idle checker and query timeout scheduler), so an application server can unload the driver on undeploy.static voidClosing a pool with name defined in url.static voidRemove pool.static PoolretrievePool(Configuration conf) Get existing pool for a configuration.private static void
-
Field Details
-
poolIndex
-
poolMap
-
poolExecutor
-
-
Constructor Details
-
Pools
public Pools()
-
-
Method Details
-
retrievePool
Get existing pool for a configuration. Create it if it doesn't exist.- Parameters:
conf- configuration parser- Returns:
- pool
-
remove
-
close
public static void close()Close all pools and release the driver's shared threads (pool idle checker and query timeout scheduler), so an application server can unload the driver on undeploy. -
close
Closing a pool with name defined in url.- Parameters:
poolName- the option "poolName" value
-
shutdownExecutor
private static void shutdownExecutor()
-