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.
Since:
1.0.0
  • 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).

      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.