Package kvd.client

Class KvdClientBuilder

java.lang.Object
kvd.client.KvdClientBuilder

public class KvdClientBuilder extends Object
Use this builder to construct a KvdClient instance when you need to set configuration options other than the default. Anticipating more options in the future.
  • Constructor Details

    • KvdClientBuilder

      public KvdClientBuilder()
  • Method Details

    • setTransactionDefaultTimeoutMs

      public KvdClientBuilder setTransactionDefaultTimeoutMs(long transactionDefaultTimeoutMs)
      Set the default transaction timeout in milliseconds, 0 means no timeout.
    • setSocketSoTimeoutMs

      public KvdClientBuilder setSocketSoTimeoutMs(int socketSoTimeoutMs)
    • setServerTimeoutSeconds

      public KvdClientBuilder setServerTimeoutSeconds(int serverTimeoutSeconds)
    • create

      public KvdClient create(String serverAddress)
      Create the KvdClient connecting to the given server.
      Parameters:
      serverAddress - The serverAddress is in the form host:port
      Returns:
      The KvdClient instance