v0.1.0
Loading...
Searching...
No Matches
me.ccute.kvstore.sdk.client.KvClientBuilder Class Reference

Public Member Functions

KvClientBuilder host (String host)
 
KvClientBuilder port (int port)
 
KvClientBuilder timeout (int timeoutMs)
 
KvClient build ()
 

Detailed Description

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();

Member Function Documentation

◆ host()

KvClientBuilder me.ccute.kvstore.sdk.client.KvClientBuilder.host ( String host)

Sets the port of the kvstore server.

Parameters
hostThe hostname or IP address. Default is "localhost".
Returns
this builder instance for method chaining.

◆ port()

KvClientBuilder me.ccute.kvstore.sdk.client.KvClientBuilder.port ( int port)

Sets the port of the kvstore server.

Parameters
portThe port number. Default is 6379.
Returns
this builder instance for method chaining.

The documentation for this class was generated from the following file: