Uses of Class
com.clickhouse.client.api.Client.Builder
Packages that use Client.Builder
-
Uses of Client.Builder in com.clickhouse.client.api
Methods in com.clickhouse.client.api that return Client.BuilderModifier and TypeMethodDescriptionClient.Builder.addEndpoint(Protocol protocol, String host, int port, boolean secure) Server address to which client may connect.Client.Builder.addEndpoint(String endpoint) Server address to which client may connect.Client.Builder.allowBinaryReaderToReuseBuffers(boolean reuse) Configures client to reuse allocated byte buffers for numbers.Client.Builder.appCompressedData(boolean enabled) Client.Builder.columnToMethodMatchingStrategy(ColumnToMethodMatchingStrategy strategy) Sets column to method matching strategy.Client.Builder.compressClientRequest(boolean enabled) Client request compression.Client.Builder.compressServerResponse(boolean enabled) Server response compression.Client.Builder.enableConnectionPool(boolean enable) Configures client to use build-in connection poolClient.Builder.httpHeader(String key, String value) Defines list of headers that should be sent with each request.Client.Builder.httpHeader(String key, Collection<String> values) but for multiple values.Client.Builder.httpHeaders(Map<String, String> headers) but for multiple headers.Client.Builder.registerClientMetrics(Object registry, String name) Registers http client metrics with MeterRegistry.Client.Builder.retryOnFailures(ClientFaultCause... causes) Sets list of causes that should be retried on.Client.Builder.serverSetting(String name, String value) Defines list of server settings that should be sent with each request.Client.Builder.serverSetting(String name, Collection<String> values) but for multiple values.Client.Builder.setAccessToken(String accessToken) Access token for authentication with server.Client.Builder.setClientCertificate(String path) Client certificate for mTLS.Client.Builder.setClientKey(String path) Client key for mTLS.Client.Builder.setClientName(String clientName) Sets additional information about calling application.Client.Builder.setClientNetworkBufferSize(int size) Set size of a buffers that are used to read/write data from the server.Client.Builder.setConnectionRequestTimeout(long timeout, ChronoUnit unit) Set timeout for waiting a free connection from a pool when all connections are leased.Client.Builder.setConnectionReuseStrategy(ConnectionReuseStrategy strategy) Sets strategy of how connections are reuse.Client.Builder.setConnectionTTL(long timeout, ChronoUnit unit) Sets how long any connection would be considered as active and able for a lease.Client.Builder.setConnectTimeout(long timeout) Default connection timeout in milliseconds.Client.Builder.setConnectTimeout(long timeout, ChronoUnit unit) Default connection timeout in milliseconds.Client.Builder.setDefaultDatabase(String database) Sets the default database name that will be used by operations if not specified.Client.Builder.setExecutionTimeout(long timeout, ChronoUnit timeUnit) Sets the maximum time for operation to complete.Client.Builder.setHttpCookiesEnabled(boolean enabled) Client.Builder.setKeepAliveTimeout(long timeout, ChronoUnit unit) Sets keep alive timeout for a connection to override server value.Client.Builder.setLZ4UncompressedBufferSize(int size) Sets buffer size for uncompressed data in LZ4 compression.Client.Builder.setMaxConnections(int maxConnections) Sets the maximum number of connections that can be opened at the same time to a single server.Client.Builder.setMaxRetries(int maxRetries) Sets a configuration option.Client.Builder.setOptions(Map<String, String> options) Sets client options from provided map.Client.Builder.setPassword(String password) Password for authentication with server.Client.Builder.setProxyCredentials(String user, String pass) Client.Builder.setRootCertificate(String path) Defines path to the key store file.Client.Builder.setServerTimeZone(String timeZone) Specify server timezone to use.Client.Builder.setSharedOperationExecutor(ExecutorService executorService) Sets an executor for running operations.Client.Builder.setSocketKeepAlive(boolean value) Default socket keep alive option.If set to true socket will be kept alive until terminated by one of the parties.Client.Builder.setSocketLinger(int secondsToWait) Default socket linger option.Client.Builder.setSocketRcvbuf(long size) Default socket receive buffer size in bytes.Client.Builder.setSocketReuseAddress(boolean value) Default socket reuse address option.Client.Builder.setSocketSndbuf(long size) Default socket send buffer size in bytes.Client.Builder.setSocketTcpNodelay(boolean value) Default socket tcp_no_delay option.Client.Builder.setSocketTimeout(long timeout) Default socket timeout in milliseconds.Client.Builder.setSocketTimeout(long timeout, ChronoUnit unit) Default socket timeout in milliseconds.Client.Builder.setSSLTrustStore(String path) Defines path to the trust store file.Client.Builder.setSSLTrustStorePassword(String password) Password for the SSL Trust Store.Client.Builder.setSSLTrustStoreType(String type) Type of the SSL Trust Store.Client.Builder.setUsername(String username) Username for authentication with server.Client.Builder.useAsyncRequests(boolean async) Configures client to execute requests in a separate thread.Client.Builder.useBearerTokenAuth(String bearerToken) Specifies whether to use Bearer Authentication and what token to use.Client.Builder.useHTTPBasicAuth(boolean useBasicAuth) Whether to use HTTP basic authentication.Client.Builder.useHttpCompression(boolean enabled) Configures the client to use HTTP compression.Client.Builder.useNewImplementation(boolean useNewImplementation) Deprecated.Client.Builder.useServerTimeZone(boolean useServerTimeZone) Configure client to use server timezone for date/datetime columns.Client.Builder.useSSLAuthentication(boolean useSSLAuthentication) Makes client to use SSL Client Certificate to authenticate with server.Client.Builder.useTimeZone(String timeZone) Configure client to use specified timezone.