All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloud.prefab.client.internal.FeatureFlagClientImpl Maven / Gradle / Ivy

Go to download

API Client for https://prefab.cloud: rate limits, feature flags and semaphores as a service

The newest version!
package cloud.prefab.client.internal;

import cloud.prefab.client.ConfigClient;
import cloud.prefab.domain.Prefab;
import java.util.Map;
import java.util.Optional;

public class FeatureFlagClientImpl extends AbstractFeatureFlagResolverImpl {

  private final ConfigClient configClient;

  public FeatureFlagClientImpl(ConfigClient configClient) {
    this.configClient = configClient;
  }

  protected Optional getConfigValue(
    String feature,
    Map attributes
  ) {
    return configClient.get(feature, attributes);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy