Class ClientConfigBuilder


  • public class ClientConfigBuilder
    extends java.lang.Object
    A builder for ClientConfig objects
    • Constructor Detail

      • ClientConfigBuilder

        public ClientConfigBuilder()
    • 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 or Pgx.EMBEDDED_URL to 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
      • 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 value
        value - the configuration value
        Returns:
        this builder
        Since:
        21.1