Class BasePoolConfig

  • Direct Known Subclasses:
    BoundedPoolConfig

    public abstract class BasePoolConfig
    extends Object
    Base configuration for an object pool declaring options for object validation. Typically used as base class for configuration objects for specific pool implementations.
    Since:
    5.1
    Author:
    Mark Paluch
    • Field Detail

      • DEFAULT_TEST_ON_CREATE

        public static final boolean DEFAULT_TEST_ON_CREATE
        The default value for the testOnCreate configuration attribute.
        See Also:
        Constant Field Values
      • DEFAULT_TEST_ON_ACQUIRE

        public static final boolean DEFAULT_TEST_ON_ACQUIRE
        The default value for the testOnAcquire configuration attribute.
        See Also:
        Constant Field Values
      • DEFAULT_TEST_ON_RELEASE

        public static final boolean DEFAULT_TEST_ON_RELEASE
        The default value for the testOnRelease configuration attribute.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BasePoolConfig

        protected BasePoolConfig​(boolean testOnCreate,
                                 boolean testOnAcquire,
                                 boolean testOnRelease)
    • Method Detail

      • isTestOnCreate

        public boolean isTestOnCreate()
        Get the value for the testOnCreate configuration attribute for pools created with this configuration instance.
        Returns:
        the current setting of testOnCreate for this configuration instance.
      • isTestOnAcquire

        public boolean isTestOnAcquire()
        Get the value for the testOnAcquire configuration attribute for pools created with this configuration instance.
        Returns:
        the current setting of testOnAcquire for this configuration instance.
      • isTestOnRelease

        public boolean isTestOnRelease()
        Get the value for the testOnRelease configuration attribute for pools created with this configuration instance.
        Returns:
        the current setting of testOnRelease for this configuration instance.