ClusterEnvironment

class ClusterEnvironment : CoreEnvironment

Resources and configuration for connecting to a Couchbase cluster.

You don't need to worry about creating an environment unless you want to share a single environment between multiple clusters. In that case, create an environment using a builder returned by ClusterEnvironment.builder.

See also

Types

Builder
Link copied to clipboard
class Builder : CoreEnvironment.Builder<ClusterEnvironment.Builder>

Used for configuring cluster environment settings, or creating a shared cluster environment.

Companion
Link copied to clipboard
object Companion

Functions

clientHash
Link copied to clipboard
open fun clientHash(): Optional<String>
clientVersion
Link copied to clipboard
open fun clientVersion(): Optional<String>
compressionConfig
Link copied to clipboard
open fun compressionConfig(): CompressionConfig
coreHash
Link copied to clipboard
open fun coreHash(): Optional<String>
coreVersion
Link copied to clipboard
open fun coreVersion(): Optional<String>
eventBus
Link copied to clipboard
open fun eventBus(): EventBus
exportAsString
Link copied to clipboard
open fun exportAsString(p0: Context.ExportFormat): String
ioConfig
Link copied to clipboard
open fun ioConfig(): IoConfig
ioEnvironment
Link copied to clipboard
open fun ioEnvironment(): IoEnvironment
loggerConfig
Link copied to clipboard
open fun loggerConfig(): LoggerConfig
maxNumRequestsInRetry
Link copied to clipboard
open fun maxNumRequestsInRetry(): Long
meter
Link copied to clipboard
@Stability.Volatile
open fun meter(): Meter
orphanReporter
Link copied to clipboard
open fun orphanReporter(): OrphanReporter
requestCallbacks
Link copied to clipboard
@Stability.Internal
open fun requestCallbacks(): MutableList<RequestCallback>
requestTracer
Link copied to clipboard
@Stability.Volatile
open fun requestTracer(): RequestTracer
retryStrategy
Link copied to clipboard
open fun retryStrategy(): RetryStrategy
scheduler
Link copied to clipboard
open fun scheduler(): Scheduler
securityConfig
Link copied to clipboard
open fun securityConfig(): SecurityConfig
shutdown
Link copied to clipboard
open fun shutdown()
open fun shutdown(p0: Duration)
shutdownAsync
Link copied to clipboard
open fun shutdownAsync(): CompletableFuture<Void>
open fun shutdownAsync(p0: Duration): CompletableFuture<Void>
shutdownReactive
Link copied to clipboard
open fun shutdownReactive(): Mono<Void>
open fun shutdownReactive(p0: Duration): Mono<Void>
shutdownSuspend
Link copied to clipboard
suspend fun shutdownSuspend(timeout: Duration = timeoutConfig().disconnectTimeout().toKotlinDuration())

Shuts down this environment. Does the same thing as shutdown, but suspends instead of blocking.

timeoutConfig
Link copied to clipboard
open fun timeoutConfig(): TimeoutConfig
timer
Link copied to clipboard
open fun timer(): Timer
toString
Link copied to clipboard
open override fun toString(): String
userAgent
Link copied to clipboard
open fun userAgent(): UserAgent