|
v0.1.0
|
Public Member Functions | |
| KvClientBuilder | host (String host) |
| KvClientBuilder | port (int port) |
| KvClientBuilder | timeout (int timeoutMs) |
| KvClient | build () |
A builder for creating and configuring KvClient instances.
This class provides a fluent API to configure the network settings before establishing a connection to the kvstore database.
Example Usage:
KvClient client = new KvClientBuilder()
.host("127.0.0.1")
.port(6379)
.timeout(5000)
.build();
| KvClientBuilder me.ccute.kvstore.sdk.client.KvClientBuilder.host | ( | String | host | ) |
Sets the port of the kvstore server.
| host | The hostname or IP address. Default is "localhost". |
| KvClientBuilder me.ccute.kvstore.sdk.client.KvClientBuilder.port | ( | int | port | ) |
Sets the port of the kvstore server.
| port | The port number. Default is 6379. |