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

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

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

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
@Nullable
open fun appTelemetryEndpoint(): URI?
Link copied to clipboard
open fun clientHash(): Optional<String?>?
Link copied to clipboard
Link copied to clipboard
open fun close()
Link copied to clipboard
open fun compressionConfig(): CompressionConfig?
Link copied to clipboard
open fun coreHash(): Optional<String?>?
Link copied to clipboard
open fun coreVersion(): Optional<String?>?
Link copied to clipboard
open fun eventBus(): EventBus?
Link copied to clipboard
@Stability.Internal
open fun executor(): Executor?
Link copied to clipboard
open fun exportAsString(format: Context.ExportFormat?): String?
Link copied to clipboard
open fun ioConfig(): IoConfig?
Link copied to clipboard
open fun ioEnvironment(): IoEnvironment?
Link copied to clipboard
open fun loggerConfig(): LoggerConfig?
Link copied to clipboard
Link copied to clipboard
@Stability.Volatile
open fun meter(): Meter?
Link copied to clipboard
@Stability.Internal
open fun observabilitySemanticConventions(): List<ObservabilitySemanticConvention?>?
Link copied to clipboard
open fun orphanReporter(): OrphanReporter?
Link copied to clipboard
@Nullable
open fun preferredServerGroup(): String?
Link copied to clipboard
open fun <T : Any> publishOnUserScheduler(future: Supplier<CompletableFuture<T>>): Mono<T>
@Stability.Internal
open fun <T : Any?> publishOnUserScheduler(flux: Flux<T>): Flux<T?>
@Stability.Internal
open fun <T : Any?> publishOnUserScheduler(mono: Mono<T>): Mono<T?>
Link copied to clipboard
@Stability.Internal
open fun requestCallbacks(): List<RequestCallback?>?
Link copied to clipboard
@Stability.Volatile
open fun requestTracer(): RequestTracer?
Link copied to clipboard
open fun retryStrategy(): RetryStrategy?
Link copied to clipboard
open fun scheduler(): Scheduler?
Link copied to clipboard
open fun securityConfig(): SecurityConfig?
Link copied to clipboard
open fun shutdown()
open fun shutdown(timeout: Duration?)
Link copied to clipboard
Link copied to clipboard
open fun shutdownReactive(): Mono<Void?>?
open fun shutdownReactive(timeout: Duration?): Mono<Void?>?
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.

Link copied to clipboard
open fun timeoutConfig(): TimeoutConfig?
Link copied to clipboard
open fun timer(): Timer?
Link copied to clipboard
@Stability.Volatile
open fun transactionsConfig(): CoreTransactionsConfig?
Link copied to clipboard
@Stability.Volatile
open fun transactionsSchedulers(): CoreTransactionsSchedulers?
Link copied to clipboard
open fun userAgent(): UserAgent?
Link copied to clipboard
@Stability.Internal
@Nullable
open fun userScheduler(): Supplier<Scheduler?>?