Class ConnectionPoolInfo

java.lang.Object
org.ofbiz.core.entity.config.ConnectionPoolInfo

public class ConnectionPoolInfo extends Object
Connection pool configuration
  • Field Details

    • DEFAULT_POOL_MAX_SIZE

      public static final int DEFAULT_POOL_MAX_SIZE
      See Also:
    • DEFAULT_POOL_MIN_SIZE

      public static final int DEFAULT_POOL_MIN_SIZE
      See Also:
    • DEFAULT_POOL_MAX_WAIT

      public static final long DEFAULT_POOL_MAX_WAIT
      See Also:
    • DEFAULT_POOL_SLEEP_TIME

      public static final long DEFAULT_POOL_SLEEP_TIME
      See Also:
    • DEFAULT_POOL_LIFE_TIME

      public static final long DEFAULT_POOL_LIFE_TIME
      See Also:
    • DEFAULT_DEADLOCK_MAX_WAIT

      public static final long DEFAULT_DEADLOCK_MAX_WAIT
      See Also:
    • DEFAULT_DEADLOCK_RETRY_WAIT

      public static final long DEFAULT_DEADLOCK_RETRY_WAIT
      See Also:
  • Constructor Details

    • ConnectionPoolInfo

      public ConnectionPoolInfo(Integer maxSize, Integer minSize, Long maxWait, long sleepTime, long lifeTime, long deadLockMaxWait, long deadLockRetryWait, String validationQuery, Long minEvictableTimeMillis, Long timeBetweenEvictionRunsMillis)
  • Method Details

    • builder

      public static ConnectionPoolInfo.Builder builder()
    • toBuilder

      public ConnectionPoolInfo.Builder toBuilder()
    • getMaxSize

      public int getMaxSize()
    • getMinSize

      public int getMinSize()
    • getMaxIdle

      public int getMaxIdle()
    • getInitialSize

      public Integer getInitialSize()
    • getMaxWait

      public long getMaxWait()
    • getSleepTime

      public long getSleepTime()
    • getLifeTime

      public long getLifeTime()
    • getDeadLockMaxWait

      public long getDeadLockMaxWait()
    • getDeadLockRetryWait

      public long getDeadLockRetryWait()
    • getValidationQuery

      public String getValidationQuery()
    • getMinEvictableTimeMillis

      public Long getMinEvictableTimeMillis()
    • getTimeBetweenEvictionRunsMillis

      public Long getTimeBetweenEvictionRunsMillis()
    • getPoolPreparedStatements

      public Boolean getPoolPreparedStatements()
    • getRemoveAbandonedOnBorrow

      public Boolean getRemoveAbandonedOnBorrow()
    • getRemoveAbandonedOnMaintanance

      public Boolean getRemoveAbandonedOnMaintanance()
    • getTestOnBorrow

      public Boolean getTestOnBorrow()
    • getTestOnReturn

      public Boolean getTestOnReturn()
    • getTestWhileIdle

      public Boolean getTestWhileIdle()
    • getMaxOpenPreparedStatements

      public Integer getMaxOpenPreparedStatements()
    • getNumTestsPerEvictionRun

      public Integer getNumTestsPerEvictionRun()
    • getRemoveAbandonedTimeout

      public Integer getRemoveAbandonedTimeout()
    • getValidationQueryTimeout

      public Integer getValidationQueryTimeout()
    • getDefaultCatalog

      public String getDefaultCatalog()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object