Interface BucketLoader
-
- All Known Implementing Classes:
BaseBucketLoader
,ClusterManagerBucketLoader
,KeyValueBucketLoader
public interface BucketLoader
TheBucketLoader
is responsible for initially loading a fresh configuration from the cluster.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Mono<ProposedBucketConfigContext>
load(NodeIdentifier seed, int port, String bucket, Optional<String> alternateAddress)
Attempts to load a config for the given seed node.
-
-
-
Method Detail
-
load
Mono<ProposedBucketConfigContext> load(NodeIdentifier seed, int port, String bucket, Optional<String> alternateAddress)
Attempts to load a config for the given seed node.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).
- Parameters:
seed
- the seed node to attempt loading from.bucket
- the name of the bucket.- Returns:
- a
Mono
eventually completing with a config or failing.
-
-