Interface BucketLoader

All Known Implementing Classes:
BaseBucketLoader, ClusterManagerBucketLoader, KeyValueBucketLoader

public interface BucketLoader
The BucketLoader is responsible for initially loading a fresh configuration from the cluster.
  • Method Details

    • 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).

      seed - the seed node to attempt loading from.
      bucket - the name of the bucket.
      a Mono eventually completing with a config or failing.