Class Pools

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

public final class Pools extends Object
Pools
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    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 void
    close(String poolName)
    Closing a pool with name defined in url.
    static void
    remove(Pool pool)
    Remove pool.
    static Pool
    Get existing pool for a configuration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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