Class JdbcClientPool

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, ClientPool<java.sql.Connection,​java.sql.SQLException>

    public class JdbcClientPool
    extends ClientPoolImpl<java.sql.Connection,​java.sql.SQLException>
    • Nested Class Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      JdbcClientPool​(int poolSize, java.lang.String dbUrl, java.util.Map<java.lang.String,​java.lang.String> props)  
      JdbcClientPool​(java.lang.String dbUrl, java.util.Map<java.lang.String,​java.lang.String> props)  
    • Constructor Detail

      • JdbcClientPool

        public JdbcClientPool​(java.lang.String dbUrl,
                              java.util.Map<java.lang.String,​java.lang.String> props)
      • JdbcClientPool

        public JdbcClientPool​(int poolSize,
                              java.lang.String dbUrl,
                              java.util.Map<java.lang.String,​java.lang.String> props)
    • Method Detail

      • newClient

        protected java.sql.Connection newClient()
        Specified by:
        newClient in class ClientPoolImpl<java.sql.Connection,​java.sql.SQLException>
      • reconnect

        protected java.sql.Connection reconnect​(java.sql.Connection client)
        Specified by:
        reconnect in class ClientPoolImpl<java.sql.Connection,​java.sql.SQLException>
      • close

        protected void close​(java.sql.Connection client)
        Specified by:
        close in class ClientPoolImpl<java.sql.Connection,​java.sql.SQLException>
      • isConnectionException

        protected boolean isConnectionException​(java.lang.Exception e)
        Overrides:
        isConnectionException in class ClientPoolImpl<java.sql.Connection,​java.sql.SQLException>