Class TimeoutConfig.Builder

java.lang.Object
com.couchbase.client.core.env.TimeoutConfig.Builder
Enclosing class:
TimeoutConfig

public static class TimeoutConfig.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public TimeoutConfig build()
    • kvTimeout

      public TimeoutConfig.Builder kvTimeout(Duration kvTimeout)
      Sets the timeout to use for key-value operations.

      The default is 2.5 seconds.

      Returns:
      this, for chaining
    • kvDurableTimeout

      public TimeoutConfig.Builder kvDurableTimeout(Duration kvDurableTimeout)
      Sets the timeout to use for key-value operations if DurabilityLevel is set.

      The default is 10 seconds.

      Returns:
      this, for chaining
    • kvScanTimeout

      public TimeoutConfig.Builder kvScanTimeout(Duration kvScanTimeout)
      Sets the timeout to use for key-value scan operations.

      The default is 75 seconds.

      Returns:
      this, for chaining
    • managementTimeout

      public TimeoutConfig.Builder managementTimeout(Duration managementTimeout)
      Sets the timeout to use for manager operations.

      The default is 75 seconds.

      Returns:
      this, for chaining
    • queryTimeout

      public TimeoutConfig.Builder queryTimeout(Duration queryTimeout)
      Sets the timeout to use for query operations.

      The default is 75 seconds.

      Returns:
      this, for chaining
    • viewTimeout

      public TimeoutConfig.Builder viewTimeout(Duration viewTimeout)
      Sets the timeout to use for view operations.

      The default is 75 seconds.

      Returns:
      this, for chaining
    • searchTimeout

      public TimeoutConfig.Builder searchTimeout(Duration searchTimeout)
      Sets the timeout to use for search operations.

      The default is 75 seconds.

      Returns:
      this, for chaining
    • analyticsTimeout

      public TimeoutConfig.Builder analyticsTimeout(Duration analyticsTimeout)
      Sets the timeout to use for analytics operations.

      The default is 75 seconds.

      Returns:
      this, for chaining
    • connectTimeout

      public TimeoutConfig.Builder connectTimeout(Duration connectTimeout)
      Sets the timeout to use for connecting and socket connects.

      The default is 10 seconds.

      Returns:
      this, for chaining
    • disconnectTimeout

      public TimeoutConfig.Builder disconnectTimeout(Duration disconnectTimeout)
      Sets the timeout to use for disconnection operations.

      The default is 10 seconds.

      Returns:
      this, for chaining
    • eventingTimeout

      public TimeoutConfig.Builder eventingTimeout(Duration eventingTimeout)
      Sets the timeout to use for eventing operations.

      The default is 75 seconds.

      Returns:
      this, for chaining
    • backupTimeout

      @Volatile public TimeoutConfig.Builder backupTimeout(Duration backupTimeout)
      Sets the timeout to use for backup operations.

      The default is 75 seconds.

      Returns:
      this, for chaining