Class OracleConfigureRequest
- java.lang.Object
-
- io.helidon.integrations.common.rest.ApiJsonBuilder<T>
-
- io.helidon.integrations.common.rest.ApiJsonRequest<T>
-
- io.helidon.integrations.vault.VaultRequest<T>
-
- io.helidon.integrations.vault.secrets.database.DbConfigure.Request<OracleConfigureRequest>
-
- io.helidon.integrations.vault.secrets.database.OracleConfigureRequest
-
- All Implemented Interfaces:
ApiRequest<OracleConfigureRequest>
public class OracleConfigureRequest extends DbConfigure.Request<OracleConfigureRequest>
Request to configure Oracle database.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OracleConfigureRequest(String url)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OracleConfigureRequest
builder(String url)
A new request builder for Oracle DB.OracleConfigureRequest
maxConnectionLifetimeSeconds(Duration duration)
Specifies the maximum amount of time a connection may be reused.OracleConfigureRequest
maxIdleConnections(int count)
Specifies the maximum number of idle connections to the database.OracleConfigureRequest
maxOpenConnections(int count)
Specifies the maximum number of open connections to the database.-
Methods inherited from class io.helidon.integrations.vault.secrets.database.DbConfigure.Request
addAllowedRole, addRootRotationStatement, name, password, passwordPolicy, username, verifyConnection
-
Methods inherited from class io.helidon.integrations.vault.VaultRequest
add, addCommaDelimitedArray, addToCommaDelimitedArray, durationToTtl, preBuild
-
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonRequest
addHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaType
-
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilder
add, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, postBuild, toJson
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.integrations.common.rest.ApiRequest
toJson
-
-
-
-
Constructor Detail
-
OracleConfigureRequest
protected OracleConfigureRequest(String url)
-
-
Method Detail
-
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
-
-