org.springframework.boot.jdbc.metadata

Class HikariDataSourcePoolMetadata

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Integer getActive()
      Return the current number of active connections that have been allocated from the data source or null if that information is not available.
      java.lang.Boolean getDefaultAutoCommit()
      The default auto-commit state of connections created by this pool.
      java.lang.Integer getIdle()
      Return the number of established but idle connections.
      java.lang.Integer getMax()
      Return the maximum number of active connections that can be allocated at the same time or -1 if there is no limit.
      java.lang.Integer getMin()
      Return the minimum number of idle connections in the pool or null if that information is not available.
      java.lang.String getValidationQuery()
      Return the query to use to validate that a connection is valid or null if that information is not available.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HikariDataSourcePoolMetadata

        public HikariDataSourcePoolMetadata(com.zaxxer.hikari.HikariDataSource dataSource)
    • Method Detail

      • getActive

        public java.lang.Integer getActive()
        Description copied from interface: DataSourcePoolMetadata
        Return the current number of active connections that have been allocated from the data source or null if that information is not available.
        Returns:
        the number of active connections or null
      • getIdle

        public java.lang.Integer getIdle()
        Description copied from interface: DataSourcePoolMetadata
        Return the number of established but idle connections. Can also return null if that information is not available.
        Returns:
        the number of established but idle connections or null
        See Also:
        DataSourcePoolMetadata.getActive()
      • getMax

        public java.lang.Integer getMax()
        Description copied from interface: DataSourcePoolMetadata
        Return the maximum number of active connections that can be allocated at the same time or -1 if there is no limit. Can also return null if that information is not available.
        Returns:
        the maximum number of active connections or null
      • getMin

        public java.lang.Integer getMin()
        Description copied from interface: DataSourcePoolMetadata
        Return the minimum number of idle connections in the pool or null if that information is not available.
        Returns:
        the minimum number of active connections or null
      • getValidationQuery

        public java.lang.String getValidationQuery()
        Description copied from interface: DataSourcePoolMetadata
        Return the query to use to validate that a connection is valid or null if that information is not available.
        Returns:
        the validation query or null
      • getDefaultAutoCommit

        public java.lang.Boolean getDefaultAutoCommit()
        Description copied from interface: DataSourcePoolMetadata
        The default auto-commit state of connections created by this pool. If not set (null), default is JDBC driver default (If set to null then the java.sql.Connection.setAutoCommit(boolean) method will not be called.)
        Returns:
        the default auto-commit state or null