@InterfaceAudience.Public @InterfaceStability.Evolving public static final class AsyncKuduClient.AsyncKuduClientBuilder extends Object
Constructor and Description |
---|
AsyncKuduClientBuilder(List<String> masterAddresses)
Creates a new builder for a client that will connect to the specified masters.
|
AsyncKuduClientBuilder(String masterAddresses)
Creates a new builder for a client that will connect to the specified masters.
|
Modifier and Type | Method and Description |
---|---|
AsyncKuduClient.AsyncKuduClientBuilder |
bossCount(int bossCount)
Set the maximum number of boss threads.
|
AsyncKuduClient |
build()
Creates a new client that connects to the masters.
|
AsyncKuduClient.AsyncKuduClientBuilder |
defaultAdminOperationTimeoutMs(long timeoutMs)
Sets the default timeout used for administrative operations (e.g.
|
AsyncKuduClient.AsyncKuduClientBuilder |
defaultOperationTimeoutMs(long timeoutMs)
Sets the default timeout used for user operations (using sessions and scanners).
|
AsyncKuduClient.AsyncKuduClientBuilder |
defaultSocketReadTimeoutMs(long timeoutMs)
Sets the default timeout to use when waiting on data from a socket.
|
AsyncKuduClient.AsyncKuduClientBuilder |
disableStatistics()
Disable this client's collection of statistics.
|
AsyncKuduClient.AsyncKuduClientBuilder |
nioExecutors(Executor bossExecutor,
Executor workerExecutor)
Set the executors which will be used for the embedded Netty boss and workers.
|
AsyncKuduClient.AsyncKuduClientBuilder |
workerCount(int workerCount)
Set the maximum number of worker threads.
|
public AsyncKuduClientBuilder(String masterAddresses)
masterAddresses
- comma-separated list of "host:port" pairs of the masterspublic AsyncKuduClientBuilder(List<String> masterAddresses)
Here are some examples of recognized formats:
masterAddresses
- list of master addressespublic AsyncKuduClient.AsyncKuduClientBuilder defaultAdminOperationTimeoutMs(long timeoutMs)
timeoutMs
- a timeout in millisecondspublic AsyncKuduClient.AsyncKuduClientBuilder defaultOperationTimeoutMs(long timeoutMs)
timeoutMs
- a timeout in millisecondspublic AsyncKuduClient.AsyncKuduClientBuilder defaultSocketReadTimeoutMs(long timeoutMs)
timeoutMs
- a timeout in millisecondspublic AsyncKuduClient.AsyncKuduClientBuilder nioExecutors(Executor bossExecutor, Executor workerExecutor)
public AsyncKuduClient.AsyncKuduClientBuilder bossCount(int bossCount)
public AsyncKuduClient.AsyncKuduClientBuilder workerCount(int workerCount)
public AsyncKuduClient.AsyncKuduClientBuilder disableStatistics()
public AsyncKuduClient build()
Copyright © 2017 The Apache Software Foundation. All rights reserved.