All Implemented Interfaces:
ApiRequest<OracleConfigureRequest>

public class OracleConfigureRequest extends DbConfigure.Request<OracleConfigureRequest>
Request to configure Oracle database.
  • Constructor Details

    • OracleConfigureRequest

      protected OracleConfigureRequest(String url)
  • Method Details

    • builder

      public static OracleConfigureRequest builder(String url)
      A new request builder for Oracle DB.
      Parameters:
      url - the Oracle DSN
      Returns:
      a new request
    • maxOpenConnections

      public OracleConfigureRequest maxOpenConnections(int count)
      Specifies the maximum number of open connections to the database.
      Parameters:
      count - number of open connections allowed
      Returns:
      updated request
    • maxIdleConnections

      public OracleConfigureRequest maxIdleConnections(int count)
      Specifies the maximum number of idle connections to the database. A zero uses the value of max_open_connections and a negative value disables idle connections. If larger than max_open_connections it will be reduced to be equal.
      Parameters:
      count - number of allowed idle connections
      Returns:
      updated request
    • maxConnectionLifetimeSeconds

      public OracleConfigureRequest maxConnectionLifetimeSeconds(Duration duration)
      Specifies the maximum amount of time a connection may be reused. If <= 0s connections are reused forever.
      Parameters:
      duration - maximal lifetime of a connection
      Returns:
      updated request