Package org.hibernate.cfg

Interface AgroalSettings

    • Field Detail

      • AGROAL_CONFIG_PREFIX

        static final String AGROAL_CONFIG_PREFIX
        A setting prefix used to indicate settings that target thehibernate-agroal integration.
        See Also:
        Constant Field Values
      • AGROAL_MAX_SIZE

        static final String AGROAL_MAX_SIZE
        The maximum size of the connection pool.

        There is no default, this setting is mandatory.

        See Also:
        Constant Field Values
      • AGROAL_MIN_SIZE

        static final String AGROAL_MIN_SIZE
        The ninimum size of the connection pool.

        The default is zero.

        See Also:
        Constant Field Values
      • AGROAL_INITIAL_SIZE

        static final String AGROAL_INITIAL_SIZE
        Initial size of the connection pool.

        The default is zero.

        See Also:
        Constant Field Values
      • AGROAL_ACQUISITION_TIMEOUT

        static final String AGROAL_ACQUISITION_TIMEOUT
        The maximum amount of time a thread can wait for a connection, after which an exception is thrown instead.

        The default is zero, resulting in threads waiting indefinitely.

        Parsed as aDuration.

        See Also:
        Duration.parse(CharSequence),Constant Field Values
      • AGROAL_IDLE_VALIDATION_TIMEOUT

        static final String AGROAL_IDLE_VALIDATION_TIMEOUT
        A foreground validation is executed if a connection has been idle in the pool for longer than this value.

        The default is zero, resulting in foreground validation not being performed.

        Parsed as aDuration.

        See Also:
        Duration.parse(CharSequence),Constant Field Values
      • AGROAL_INITIAL_SQL

        static final String AGROAL_INITIAL_SQL
        An SQL command to be executed when a connection is created.
        See Also:
        Constant Field Values
      • AGROAL_FLUSH_ON_CLOSE

        static final String AGROAL_FLUSH_ON_CLOSE
        Iftrue, connections will be flushed whenever they return to the pool.

        The default isfalse.

        Since:
        agroal-api 1.6
        See Also:
        Constant Field Values