Package com.couchbase.client.core.env
Class TimeoutConfig.Builder
java.lang.Object
com.couchbase.client.core.env.TimeoutConfig.Builder
- Enclosing class:
- TimeoutConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionanalyticsTimeout
(Duration analyticsTimeout) Sets the timeout to use for analytics operations.backupTimeout
(Duration backupTimeout) Sets the timeout to use for backup operations.build()
connectTimeout
(Duration connectTimeout) Sets the timeout to use for connecting and socket connects.disconnectTimeout
(Duration disconnectTimeout) Sets the timeout to use for disconnection operations.eventingTimeout
(Duration eventingTimeout) Sets the timeout to use for eventing operations.kvDurableTimeout
(Duration kvDurableTimeout) Sets the timeout to use for key-value operations ifDurabilityLevel
is set.kvScanTimeout
(Duration kvScanTimeout) Sets the timeout to use for key-value scan operations.Sets the timeout to use for key-value operations.managementTimeout
(Duration managementTimeout) Sets the timeout to use for manager operations.queryTimeout
(Duration queryTimeout) Sets the timeout to use for query operations.searchTimeout
(Duration searchTimeout) Sets the timeout to use for search operations.viewTimeout
(Duration viewTimeout) Sets the timeout to use for view operations.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
kvTimeout
Sets the timeout to use for key-value operations.The default is 2.5 seconds.
- Returns:
- this, for chaining
-
kvDurableTimeout
Sets the timeout to use for key-value operations ifDurabilityLevel
is set.The default is 10 seconds.
- Returns:
- this, for chaining
-
kvScanTimeout
Sets the timeout to use for key-value scan operations.The default is 75 seconds.
- Returns:
- this, for chaining
-
managementTimeout
Sets the timeout to use for manager operations.The default is 75 seconds.
- Returns:
- this, for chaining
-
queryTimeout
Sets the timeout to use for query operations.The default is 75 seconds.
- Returns:
- this, for chaining
-
viewTimeout
Sets the timeout to use for view operations.The default is 75 seconds.
- Returns:
- this, for chaining
-
searchTimeout
Sets the timeout to use for search operations.The default is 75 seconds.
- Returns:
- this, for chaining
-
analyticsTimeout
Sets the timeout to use for analytics operations.The default is 75 seconds.
- Returns:
- this, for chaining
-
connectTimeout
Sets the timeout to use for connecting and socket connects.The default is 10 seconds.
- Returns:
- this, for chaining
-
disconnectTimeout
Sets the timeout to use for disconnection operations.The default is 10 seconds.
- Returns:
- this, for chaining
-
eventingTimeout
Sets the timeout to use for eventing operations.The default is 75 seconds.
- Returns:
- this, for chaining
-
backupTimeout
Sets the timeout to use for backup operations.The default is 75 seconds.
- Returns:
- this, for chaining
-