public class ClientConfigBuilder
extends java.lang.Object
ClientConfig objects| Constructor and Description |
|---|
ClientConfigBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ClientConfig |
build()
Creates a
ClientConfig object with the specified values |
static ClientConfigBuilder |
forBaseUrl(java.lang.String baseUrl)
Creates a new ClientConfigBuilder for a specific PGX base URL.
|
ClientConfigBuilder |
setAccessToken(java.lang.String token)
Sets the authentication token (if server requires authentication)
|
ClientConfigBuilder |
setBaseUrl(java.lang.String baseUrl)
Sets the base URL
|
ClientConfigBuilder |
setClientServerInteractionMode(InteractionMode interactionMode)
Sets the client/server interaction mode (
InteractionMode.BLOCKING, InteractionMode.ASYNC_POLLING) |
ClientConfigBuilder |
setEnableCctrace(boolean enableCctrace)
Sets whether CC tracing is enabled
|
ClientConfigBuilder |
setMaxClientHttpConnections(int maxClientHttpConnections)
Sets the maximum amount of client HTTP connections
|
ClientConfigBuilder |
setPassword(java.lang.String password)
Sets the password
|
ClientConfigBuilder |
setPrefetchSize(int prefetchSize)
Sets the prefetch size
|
ClientConfigBuilder |
setRemoteFuturePendingRetryInterval(int remoteFuturePendingRetryInterval)
Sets the remote future pending retry interval
|
ClientConfigBuilder |
setRemoteFutureTimeout(int remoteFutureTimeout)
Sets the remote future timeout
|
ClientConfigBuilder |
setUploadBatchSize(int uploadBatchSize)
Sets the upload batch size
|
ClientConfigBuilder |
setUsername(java.lang.String username)
Sets the username
|
public ClientConfig build()
ClientConfig object with the specified valuesClientConfig objectpublic static ClientConfigBuilder forBaseUrl(java.lang.String baseUrl)
baseUrl - the base URL of the PGX server or Pgx.EMBEDDED_URL to indicate to start an
embedded enginepublic ClientConfigBuilder setAccessToken(java.lang.String token)
token - the authentication tokenpublic ClientConfigBuilder setBaseUrl(java.lang.String baseUrl)
baseUrl - the base URLpublic ClientConfigBuilder setClientServerInteractionMode(InteractionMode interactionMode)
InteractionMode.BLOCKING, InteractionMode.ASYNC_POLLING)interactionMode - client/server interaction modepublic ClientConfigBuilder setEnableCctrace(boolean enableCctrace)
enableCctrace - whether CC tracing is enabledpublic ClientConfigBuilder setMaxClientHttpConnections(int maxClientHttpConnections)
maxClientHttpConnections - the maximum amount of client HTTP connectionspublic ClientConfigBuilder setPassword(java.lang.String password)
password - the password; can be null for no passwordpublic ClientConfigBuilder setPrefetchSize(int prefetchSize)
prefetchSize - the prefetch sizepublic ClientConfigBuilder setRemoteFuturePendingRetryInterval(int remoteFuturePendingRetryInterval)
remoteFuturePendingRetryInterval - the remote future pending retry intervalpublic ClientConfigBuilder setRemoteFutureTimeout(int remoteFutureTimeout)
remoteFutureTimeout - the remote future timeoutpublic ClientConfigBuilder setUploadBatchSize(int uploadBatchSize)
uploadBatchSize - the upload batch sizepublic ClientConfigBuilder setUsername(java.lang.String username)
username - the usernameCopyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.