cloud.prefab.client.FeatureFlagClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prefab-cloud-java Show documentation
Show all versions of prefab-cloud-java Show documentation
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
);
}