public interface FeatureFlagServiceClient extends FeatureFlagServiceTestClient
| Modifier and Type | Method and Description |
|---|---|
default Map<String,Boolean> |
getAllFeatureKeys()
This method is used to evaluate all the feature flags in the configured environment.
|
boolean |
isExperimentalFeatureEnabled(String featureKey)
Evaluate the state for a given experimental feature flag that will query the Atlassian Experiments Service (AES).
|
boolean |
isExperimentalFeatureEnabled(String featureKey,
boolean defaultValue,
com.atlassian.featureflag.client.api.FeatureFlagContext additionalContext)
Behaves the same as
isExperimentalFeatureEnabled(String) but allows for a default value to be returned if the
feature flag service cannot be contacted and additional context for customization. |
default boolean |
isFeatureEnabled(String featureKey)
Evaluate the state for a given feature flag.
|
boolean |
isFeatureEnabled(String featureKey,
boolean defaultValue)
Evaluate the state of a feature flag.
|
boolean |
isFeatureEnabled(String featureKey,
boolean defaultValue,
com.atlassian.featureflag.client.api.FeatureFlagContext additionalContext)
Evaluate the state of a feature flag.
|
default boolean |
isVertigoFeatureEnabled(String featureKey)
Behaves the same as
isFeatureEnabled unless the system is running in
vertigo mode in which case the feature flag will always evaluate to true. |
boolean |
isVertigoFeatureEnabled(String featureKey,
boolean defaultValue)
Behaves the same as
isFeatureEnabled unless the system is running in
vertigo mode in which case the feature flag will always evaluate to true. |
boolean |
isVertigoFeatureEnabled(String featureKey,
boolean defaultValue,
com.atlassian.featureflag.client.api.FeatureFlagContext additionalContext)
Behaves the same as
isFeatureEnabled unless the system is running in
vertigo mode in which case the feature flag will always evaluate to true. |
setFlagValuedefault boolean isFeatureEnabled(String featureKey)
featureKey - boolean isFeatureEnabled(String featureKey, boolean defaultValue)
featureKey - defaultValue - boolean isFeatureEnabled(String featureKey, boolean defaultValue, com.atlassian.featureflag.client.api.FeatureFlagContext additionalContext)
featureKey - defaultValue - additionalContext - Additional context information to be passed to the FFSboolean isExperimentalFeatureEnabled(String featureKey)
featureKey - boolean isExperimentalFeatureEnabled(String featureKey, boolean defaultValue, com.atlassian.featureflag.client.api.FeatureFlagContext additionalContext)
isExperimentalFeatureEnabled(String) but allows for a default value to be returned if the
feature flag service cannot be contacted and additional context for customization.featureKey - defaultValue - additionalContext - Additional context information to be passed to the FFSdefault boolean isVertigoFeatureEnabled(String featureKey)
isFeatureEnabled unless the system is running in
vertigo mode in which case the feature flag will always evaluate to true.featureKey - boolean isVertigoFeatureEnabled(String featureKey, boolean defaultValue)
isFeatureEnabled unless the system is running in
vertigo mode in which case the feature flag will always evaluate to true.featureKey - defaultValue - boolean isVertigoFeatureEnabled(String featureKey, boolean defaultValue, com.atlassian.featureflag.client.api.FeatureFlagContext additionalContext)
isFeatureEnabled unless the system is running in
vertigo mode in which case the feature flag will always evaluate to true.featureKey - defaultValue - additionalContext - Additional context information to be passed to the FFSCopyright © 2003–2017 Atlassian. All rights reserved.