Class ConnectionPoolSettings

java.lang.Object
com.kingsrook.qqq.backend.module.rdbms.model.metadata.ConnectionPoolSettings

public class ConnectionPoolSettings extends Object
Settings for a connection pool (if your backend is configured to use one). Originally based on the most common settings for C3P0 - see https://www.mchange.com/projects/c3p0/#configuration If you want more - you'll be looking at defining your own subclass of C3P0PooledConnectionProvider and possibly this class. If using a pool other than C3P0 - some of these may apply others may not.
  • Constructor Details

    • ConnectionPoolSettings

      public ConnectionPoolSettings()
  • Method Details

    • getInitialPoolSize

      public Integer getInitialPoolSize()
      Getter for initialPoolSize
    • setInitialPoolSize

      public void setInitialPoolSize(Integer initialPoolSize)
      Setter for initialPoolSize
    • withInitialPoolSize

      public ConnectionPoolSettings withInitialPoolSize(Integer initialPoolSize)
      Fluent setter for initialPoolSize
    • getMinPoolSize

      public Integer getMinPoolSize()
      Getter for minPoolSize
    • setMinPoolSize

      public void setMinPoolSize(Integer minPoolSize)
      Setter for minPoolSize
    • withMinPoolSize

      public ConnectionPoolSettings withMinPoolSize(Integer minPoolSize)
      Fluent setter for minPoolSize
    • getMaxPoolSize

      public Integer getMaxPoolSize()
      Getter for maxPoolSize
    • setMaxPoolSize

      public void setMaxPoolSize(Integer maxPoolSize)
      Setter for maxPoolSize
    • withMaxPoolSize

      public ConnectionPoolSettings withMaxPoolSize(Integer maxPoolSize)
      Fluent setter for maxPoolSize
    • getAcquireIncrement

      public Integer getAcquireIncrement()
      Getter for acquireIncrement
    • setAcquireIncrement

      public void setAcquireIncrement(Integer acquireIncrement)
      Setter for acquireIncrement
    • withAcquireIncrement

      public ConnectionPoolSettings withAcquireIncrement(Integer acquireIncrement)
      Fluent setter for acquireIncrement
    • getMaxConnectionAgeSeconds

      public Integer getMaxConnectionAgeSeconds()
      Getter for maxConnectionAgeSeconds
    • setMaxConnectionAgeSeconds

      public void setMaxConnectionAgeSeconds(Integer maxConnectionAgeSeconds)
      Setter for maxConnectionAgeSeconds
    • withMaxConnectionAgeSeconds

      public ConnectionPoolSettings withMaxConnectionAgeSeconds(Integer maxConnectionAgeSeconds)
      Fluent setter for maxConnectionAgeSeconds
    • getMaxIdleTimeSeconds

      public Integer getMaxIdleTimeSeconds()
      Getter for maxIdleTimeSeconds
    • setMaxIdleTimeSeconds

      public void setMaxIdleTimeSeconds(Integer maxIdleTimeSeconds)
      Setter for maxIdleTimeSeconds
    • withMaxIdleTimeSeconds

      public ConnectionPoolSettings withMaxIdleTimeSeconds(Integer maxIdleTimeSeconds)
      Fluent setter for maxIdleTimeSeconds
    • getMaxIdleTimeExcessConnectionsSeconds

      public Integer getMaxIdleTimeExcessConnectionsSeconds()
      Getter for maxIdleTimeExcessConnectionsSeconds
    • setMaxIdleTimeExcessConnectionsSeconds

      public void setMaxIdleTimeExcessConnectionsSeconds(Integer maxIdleTimeExcessConnectionsSeconds)
      Setter for maxIdleTimeExcessConnectionsSeconds
    • withMaxIdleTimeExcessConnectionsSeconds

      public ConnectionPoolSettings withMaxIdleTimeExcessConnectionsSeconds(Integer maxIdleTimeExcessConnectionsSeconds)
      Fluent setter for maxIdleTimeExcessConnectionsSeconds
    • getTestConnectionOnCheckout

      public Boolean getTestConnectionOnCheckout()
      Getter for testConnectionOnCheckout
    • setTestConnectionOnCheckout

      public void setTestConnectionOnCheckout(Boolean testConnectionOnCheckout)
      Setter for testConnectionOnCheckout
    • withTestConnectionOnCheckout

      public ConnectionPoolSettings withTestConnectionOnCheckout(Boolean testConnectionOnCheckout)
      Fluent setter for testConnectionOnCheckout
    • getCheckoutTimeoutSeconds

      public Integer getCheckoutTimeoutSeconds()
      Getter for checkoutTimeoutSeconds
    • setCheckoutTimeoutSeconds

      public void setCheckoutTimeoutSeconds(Integer checkoutTimeoutSeconds)
      Setter for checkoutTimeoutSeconds
    • withCheckoutTimeoutSeconds

      public ConnectionPoolSettings withCheckoutTimeoutSeconds(Integer checkoutTimeoutSeconds)
      Fluent setter for checkoutTimeoutSeconds