public static class AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
brokerBaseUrl(java.lang.String brokerBaseUrl)
Set the broker base URL to use.
|
AdbGraphClientConfiguration |
build() |
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
database(java.lang.String database)
The Autonomous Database name.
|
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
dataStudioApiVersion(java.lang.String dataStudioApiVersion)
The API version of the Data Studio REST endpoints to use.
|
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
endpoint(java.lang.String endpoint)
ADB Graph endpoint URL.
|
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
executorService(java.util.concurrent.ExecutorService executorService)
The
ExecutorService this client should use for background polling threads. |
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
graphStudioApiVersion(java.lang.String graphStudioApiVersion)
The API version of the Graph Studio REST endpoints to use.
|
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
graphStudioBaseUrl(java.lang.String graphStudioBaseUrl)
Set the Graph Studio base URL to use.
|
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
httpClient(org.apache.http.client.HttpClient httpClient)
The Apache
HttpClient object to use for HTTP requests. |
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
jobPollInterval(long jobPollInterval)
The time interval to use when polling the server for job updates.
|
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
jobPollIntervalTimeUnit(java.util.concurrent.TimeUnit jobPollIntervalTimeUnit)
The time unit for the
jobPollInterval(long) time value. |
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
password(java.lang.String password)
The Database password to use for login.
|
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
pgxBaseUrl(java.lang.String pgxBaseUrl)
Set the PGX base URL to use.
|
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
refreshTimeBeforeTokenExpiry(int refreshTimeBeforeTokenExpiry)
The time to refresh the authentication token automatically before it expires.
|
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
refreshTimeBeforeTokenExpiryTimeUnit(java.util.concurrent.TimeUnit refreshTimeBeforeTokenExpiryTimeUnit)
The time unit of the
refreshTimeBeforeTokenExpiry(int) time value. |
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
tenant(java.lang.String tenant)
OCI tenant name (*not* the tenant OCID).
|
java.lang.String |
toString() |
AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder |
username(java.lang.String username)
The Database username to use for login.
|
public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder brokerBaseUrl(java.lang.String brokerBaseUrl)
AdbGraphClientConfiguration.getEndpoint()
. URL is expected to end with '/broker/pdbcs'this
.public AdbGraphClientConfiguration build()
public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder database(java.lang.String database)
this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder dataStudioApiVersion(java.lang.String dataStudioApiVersion)
this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder endpoint(java.lang.String endpoint)
this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder executorService(java.util.concurrent.ExecutorService executorService)
ExecutorService
this client should use for background polling threads. Optional configuration. If not set, then Executors.newFixedThreadPool(int)
will be used with the number of threads equaling Runtime.availableProcessors()
.this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder graphStudioApiVersion(java.lang.String graphStudioApiVersion)
this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder graphStudioBaseUrl(java.lang.String graphStudioBaseUrl)
AdbGraphClientConfiguration.getEndpoint()
. URL is expected to end with '/graphstudio'this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder httpClient(org.apache.http.client.HttpClient httpClient)
HttpClient
object to use for HTTP requests. Optional configuration. If not set, then HttpClients.createDefault()
will be used.this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder jobPollInterval(long jobPollInterval)
jobPollIntervalTimeUnit(java.util.concurrent.TimeUnit)
configuration. Optional configuration. If not set, then {@link #DEFAULT_JOB_POLL_INTERVAL) will be used.this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder jobPollIntervalTimeUnit(java.util.concurrent.TimeUnit jobPollIntervalTimeUnit)
jobPollInterval(long)
time value. Optional configuration. If not set, then {@link #DEFAULT_JOB_POLL_INTERVAL_TIME_UNIT) will be used.this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder password(java.lang.String password)
this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder pgxBaseUrl(java.lang.String pgxBaseUrl)
AdbGraphClientConfiguration.getEndpoint()
. URL is expected to end with '/graph/pgx'this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder refreshTimeBeforeTokenExpiry(int refreshTimeBeforeTokenExpiry)
refreshTimeBeforeTokenExpiryTimeUnit(java.util.concurrent.TimeUnit)
configuration. Optional configuration. If not set, then GraphServer.DEFAULT_TIME_BEFORE_EXPIRY
will be used.this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder refreshTimeBeforeTokenExpiryTimeUnit(java.util.concurrent.TimeUnit refreshTimeBeforeTokenExpiryTimeUnit)
refreshTimeBeforeTokenExpiry(int)
time value. Optional configuration. If not set, then AdbGraphClientConfiguration.DEFAULT_REFRESH_TIME_BEFORE_TOKEN_EXPIRY_TIME_UNIT
will be used.this
.public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder tenant(java.lang.String tenant)
this
.public java.lang.String toString()
toString
in class java.lang.Object
public AdbGraphClientConfiguration.AdbGraphClientConfigurationBuilder username(java.lang.String username)
this
.