@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)
Deprecated.
the bossExecutor is no longer used and will have no effect if provided
|
AsyncKuduClient |
build()
Creates a new client that connects to the masters.
|
AsyncKuduClient.AsyncKuduClientBuilder |
connectionNegotiationTimeoutMs(long timeoutMs)
Sets the default timeout used for connection negotiation.
|
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)
Deprecated.
this option no longer has any effect
|
AsyncKuduClient.AsyncKuduClientBuilder |
disableStatistics()
Disable this client's collection of statistics.
|
AsyncKuduClient.AsyncKuduClientBuilder |
encryptionPolicy(org.apache.kudu.client.AsyncKuduClient.EncryptionPolicy encryptionPolicy)
Require encryption for the connection to a remote server.
|
AsyncKuduClient.AsyncKuduClientBuilder |
nioExecutor(Executor workerExecutor)
Set the executor which will be used for the embedded Netty workers.
|
AsyncKuduClient.AsyncKuduClientBuilder |
nioExecutors(Executor bossExecutor,
Executor workerExecutor)
Deprecated.
the bossExecutor is no longer used and will have no effect if provided
|
AsyncKuduClient.AsyncKuduClientBuilder |
requireAuthentication(boolean requireAuthentication)
Require authentication for the connection to a remote server.
|
AsyncKuduClient.AsyncKuduClientBuilder |
saslProtocolName(String saslProtocolName)
Set the SASL protocol name.
|
AsyncKuduClient.AsyncKuduClientBuilder |
workerCount(int workerCount)
Set the maximum number of Netty 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 connectionNegotiationTimeoutMs(long timeoutMs)
timeoutMs
- a timeout in milliseconds@Deprecated public AsyncKuduClient.AsyncKuduClientBuilder defaultSocketReadTimeoutMs(long timeoutMs)
timeoutMs
- a timeout in milliseconds@Deprecated public AsyncKuduClient.AsyncKuduClientBuilder nioExecutors(Executor bossExecutor, Executor workerExecutor)
public AsyncKuduClient.AsyncKuduClientBuilder nioExecutor(Executor workerExecutor)
@Deprecated public AsyncKuduClient.AsyncKuduClientBuilder bossCount(int bossCount)
public AsyncKuduClient.AsyncKuduClientBuilder workerCount(int workerCount)
public AsyncKuduClient.AsyncKuduClientBuilder requireAuthentication(boolean requireAuthentication)
public AsyncKuduClient.AsyncKuduClientBuilder encryptionPolicy(org.apache.kudu.client.AsyncKuduClient.EncryptionPolicy encryptionPolicy)
public AsyncKuduClient.AsyncKuduClientBuilder disableStatistics()
public AsyncKuduClient.AsyncKuduClientBuilder saslProtocolName(String saslProtocolName)
public AsyncKuduClient build()