Module lettuce.core

Class BasePoolConfig

java.lang.Object
io.lettuce.core.support.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
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  BasePoolConfig.Builder
    Builder for BasePoolConfig.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static boolean DEFAULT_TEST_ON_ACQUIRE
    The default value for the testOnAcquire configuration attribute.
    static boolean DEFAULT_TEST_ON_CREATE
    The default value for the testOnCreate configuration attribute.
    static boolean DEFAULT_TEST_ON_RELEASE
    The default value for the testOnRelease configuration attribute.
  • Constructor Summary

    Constructors
    Modifier Constructor Description
    protected BasePoolConfig​(boolean testOnCreate, boolean testOnAcquire, boolean testOnRelease)  
  • Method Summary

    Modifier and Type Method Description
    boolean isTestOnAcquire()
    Get the value for the testOnAcquire configuration attribute for pools created with this configuration instance.
    boolean isTestOnCreate()
    Get the value for the testOnCreate configuration attribute for pools created with this configuration instance.
    boolean isTestOnRelease()
    Get the value for the testOnRelease configuration attribute for pools created with this configuration instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • 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 Details

    • BasePoolConfig

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

    • 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.