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.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.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.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.Sets a configuration option.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.useHttpCompression(boolean enabled) Configures the client to use HTTP compression.Client.Builder.useNewImplementation(boolean useNewImplementation) Deprecated.- do not use - it is only for developmentClient.Builder.useServerTimeZone(boolean useServerTimeZone) Configure client to use server timezone for date/datetime columns.Client.Builder.useTimeZone(String timeZone) Configure client to use specified timezone.