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

cloud.prefab.client.FeatureFlagClient 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;

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

public interface FeatureFlagClient {
  boolean featureIsOn(String feature);

  boolean featureIsOnFor(String feature, String lookupKey);

  boolean featureIsOnFor(
    String feature,
    String lookupKey,
    Map attributes
  );

  boolean featureIsOnFor(
    String feature,
    Optional lookupKey,
    Map attributes
  );

  Optional get(
    String feature,
    Optional lookupKey,
    Map properties
  );

  Optional getFrom(
    String feature,
    Optional lookupKey,
    Map attributes
  );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy