Package oracle.pgx.config
Class ClientConfigBuilder
- java.lang.Object
-
- oracle.pgx.config.ClientConfigBuilder
-
public class ClientConfigBuilder extends java.lang.ObjectA builder forClientConfigobjects
-
-
Constructor Summary
Constructors Constructor Description ClientConfigBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientConfigBuilderaddRealmConfigValue(java.lang.String key, java.lang.Object value)Add an entry to the implementation dependent configuration options for the realm clientClientConfigbuild()Creates aClientConfigobject with the specified valuesstatic ClientConfigBuilderforBaseUrl(java.lang.String baseUrl)Creates a new ClientConfigBuilder for a specific PGX base URL.ClientConfigBuildersetAccessToken(java.lang.String token)Sets the authentication token (if server requires authentication)ClientConfigBuildersetBaseUrl(java.lang.String baseUrl)Sets the base URLClientConfigBuildersetClientServerInteractionMode(InteractionMode interactionMode)Sets the client/server interaction mode (InteractionMode.BLOCKING,InteractionMode.ASYNC_POLLING)ClientConfigBuildersetEnableCctrace(boolean enableCctrace)Sets whether CC tracing is enabledClientConfigBuildersetMaxClientHttpConnections(int maxClientHttpConnections)Sets the maximum amount of client HTTP connectionsClientConfigBuildersetPrefetchSize(int prefetchSize)Sets the prefetch sizeClientConfigBuildersetRealmClientConfig(java.util.Map<java.lang.String,java.lang.Object> realmClientConfig)Set implementation dependent configuration options for the realm clientClientConfigBuildersetRemoteFuturePendingRetryInterval(int remoteFuturePendingRetryInterval)Sets the remote future pending retry intervalClientConfigBuildersetRemoteFutureTimeout(int remoteFutureTimeout)Sets the remote future timeoutClientConfigBuildersetUploadBatchSize(int uploadBatchSize)Sets the upload batch size
-
-
-
Method Detail
-
forBaseUrl
public static ClientConfigBuilder forBaseUrl(java.lang.String baseUrl)
Creates a new ClientConfigBuilder for a specific PGX base URL.- Parameters:
baseUrl- the base URL of the PGX server orPgx.EMBEDDED_URLto indicate to start an embedded engine- Returns:
- a new ClientConfigBuilder object
-
setBaseUrl
public ClientConfigBuilder setBaseUrl(java.lang.String baseUrl)
Sets the base URL- Parameters:
baseUrl- the base URL- Returns:
- this builder
-
setPrefetchSize
public ClientConfigBuilder setPrefetchSize(int prefetchSize)
Sets the prefetch size- Parameters:
prefetchSize- the prefetch size- Returns:
- this builder
-
setUploadBatchSize
public ClientConfigBuilder setUploadBatchSize(int uploadBatchSize)
Sets the upload batch size- Parameters:
uploadBatchSize- the upload batch size- Returns:
- this builder
-
setRemoteFutureTimeout
public ClientConfigBuilder setRemoteFutureTimeout(int remoteFutureTimeout)
Sets the remote future timeout- Parameters:
remoteFutureTimeout- the remote future timeout- Returns:
- this builder
-
setRemoteFuturePendingRetryInterval
public ClientConfigBuilder setRemoteFuturePendingRetryInterval(int remoteFuturePendingRetryInterval)
Sets the remote future pending retry interval- Parameters:
remoteFuturePendingRetryInterval- the remote future pending retry interval- Returns:
- this builder
-
setMaxClientHttpConnections
public ClientConfigBuilder setMaxClientHttpConnections(int maxClientHttpConnections)
Sets the maximum amount of client HTTP connections- Parameters:
maxClientHttpConnections- the maximum amount of client HTTP connections- Returns:
- this builder
-
setEnableCctrace
public ClientConfigBuilder setEnableCctrace(boolean enableCctrace)
Sets whether CC tracing is enabled- Parameters:
enableCctrace- whether CC tracing is enabled- Returns:
- this builder
-
setClientServerInteractionMode
public ClientConfigBuilder setClientServerInteractionMode(InteractionMode interactionMode)
Sets the client/server interaction mode (InteractionMode.BLOCKING,InteractionMode.ASYNC_POLLING)- Parameters:
interactionMode- client/server interaction mode- Returns:
- this builder
-
setAccessToken
public ClientConfigBuilder setAccessToken(java.lang.String token)
Sets the authentication token (if server requires authentication)- Parameters:
token- the authentication token- Returns:
- this builder
-
setRealmClientConfig
public ClientConfigBuilder setRealmClientConfig(java.util.Map<java.lang.String,java.lang.Object> realmClientConfig)
Set implementation dependent configuration options for the realm client- Parameters:
realmClientConfig- the configuration options- Returns:
- this builder
- Since:
- 21.1
-
addRealmConfigValue
public ClientConfigBuilder addRealmConfigValue(java.lang.String key, java.lang.Object value)
Add an entry to the implementation dependent configuration options for the realm client- Parameters:
key- the key for the configuration valuevalue- the configuration value- Returns:
- this builder
- Since:
- 21.1
-
build
public ClientConfig build()
Creates aClientConfigobject with the specified values- Returns:
- a
ClientConfigobject
-
-