case class Builder(owned: Boolean, connectionString: Option[String] = None, ioEnvironment: Option[IoEnvironment] = None, ioConfig: Option[IoConfig] = None, compressionConfig: Option[CompressionConfig] = None, securityConfig: Option[SecurityConfig] = None, timeoutConfig: Option[TimeoutConfig] = None, loggerConfig: Option[LoggerConfig] = None, orphanReporterConfig: Option[OrphanReporterConfig] = None, eventBus: Option[EventBus] = None, scheduler: Option[Scheduler] = None, retryStrategy: Option[RetryStrategy] = None, requestTracer: Option[RequestTracer] = None, maxNumRequestsInRetry: Option[Int] = None, transcoder: Option[Transcoder] = None) extends Product with Serializable
- Alphabetic
- By Inheritance
- Builder
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Builder(owned: Boolean, connectionString: Option[String] = None, ioEnvironment: Option[IoEnvironment] = None, ioConfig: Option[IoConfig] = None, compressionConfig: Option[CompressionConfig] = None, securityConfig: Option[SecurityConfig] = None, timeoutConfig: Option[TimeoutConfig] = None, loggerConfig: Option[LoggerConfig] = None, orphanReporterConfig: Option[OrphanReporterConfig] = None, eventBus: Option[EventBus] = None, scheduler: Option[Scheduler] = None, retryStrategy: Option[RetryStrategy] = None, requestTracer: Option[RequestTracer] = None, maxNumRequestsInRetry: Option[Int] = None, transcoder: Option[Transcoder] = None)
Value Members
- def build: Try[ClusterEnvironment]
-
def
compressionConfig(config: CompressionConfig): Builder
Sets the CompressionConfig config.
Sets the CompressionConfig config.
- returns
this, for chaining
-
def
eventBus(eventBus: EventBus): Builder
Sets the
EventBus
.Sets the
EventBus
.- returns
this, for chaining
- Annotations
- @Uncommitted()
-
def
ioConfig(config: IoConfig): Builder
Sets the IoConfig config.
Sets the IoConfig config.
- returns
this, for chaining
-
def
ioEnvironment(config: IoEnvironment): Builder
Sets the IoEnvironment config.
Sets the IoEnvironment config.
- returns
this, for chaining
-
def
loggerConfig(config: LoggerConfig): Builder
Sets the IoConfig config.
Sets the IoConfig config.
- returns
this, for chaining
-
def
maxNumRequestsInRetry(value: Int): Builder
Customize the maximum number of requests allowed in the retry timer.
Customize the maximum number of requests allowed in the retry timer.
If the limit is reached, each request that would be queued for retry is instead cancelled with a
CancellationReason
of TOO_MANY_REQUESTS_IN_RETRY. This acts as a form of backpressure.- returns
this, for chaining
-
def
orphanReporterConfig(config: OrphanReporterConfig): Builder
Sets the OrphanReporterConfig config.
Sets the OrphanReporterConfig config.
- returns
this, for chaining
-
def
requestTracer(requestTracer: RequestTracer): Builder
Sets the default
RequestTracer
to use for all operations.Sets the default
RequestTracer
to use for all operations.- returns
this, for chaining
- Annotations
- @Volatile()
-
def
retryStrategy(value: RetryStrategy): Builder
Sets the default
com.couchbase.client.core.retry.RetryStrategy
to use for all operations.Sets the default
com.couchbase.client.core.retry.RetryStrategy
to use for all operations.- returns
this, for chaining
-
def
scheduler(scheduler: Scheduler): Builder
Sets the reactive
Scheduler
to use for operations.Sets the reactive
Scheduler
to use for operations.- returns
this, for chaining
- Annotations
- @Uncommitted()
-
def
securityConfig(config: SecurityConfig): Builder
Sets the SecurityConfig config.
Sets the SecurityConfig config.
- returns
this, for chaining
-
def
timeoutConfig(config: TimeoutConfig): Builder
Sets the TimeoutConfig config.
Sets the TimeoutConfig config.
- returns
this, for chaining
-
def
transcoder(transcoder: Transcoder): Builder
Allows to override the default transcoder to be used for all KV operations.
Allows to override the default transcoder to be used for all KV operations.
- returns
this, for chaining purposes.