Class Pools

java.lang.Object
org.mariadb.jdbc.pool.Pools

public final class Pools extends Object
Pools
  • Field Details

  • Constructor Details

    • Pools

      public Pools()
  • Method Details

    • retrievePool

      public static Pool retrievePool(Configuration conf)
      Get existing pool for a configuration. Create it if it doesn't exist.
      Parameters:
      conf - configuration parser
      Returns:
      pool
    • remove

      public static void remove(Pool pool)
      Remove pool.
      Parameters:
      pool - pool to 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

      public static void close(String poolName)
      Closing a pool with name defined in url.
      Parameters:
      poolName - the option "poolName" value
    • shutdownExecutor

      private static void shutdownExecutor()