public interface BucketLoader
BucketLoader
is responsible for initially loading a fresh configuration from the
cluster.Modifier and Type | Method and Description |
---|---|
Mono<ProposedBucketConfigContext> |
load(NodeIdentifier seed,
int port,
String bucket,
Optional<String> alternateAddress)
Attempts to load a config for the given seed node.
|
Mono<ProposedBucketConfigContext> load(NodeIdentifier seed, int port, String bucket, Optional<String> alternateAddress)
If something fails during the process, the error is propagated to the caller (i.e. the service could not be enabled or fetching the config failed for some other reason that was not recoverable in this loader specifically).
seed
- the seed node to attempt loading from.bucket
- the name of the bucket.Mono
eventually completing with a config or failing.Copyright © 2024 Couchbase, Inc.. All rights reserved.