Class FeatureManagerSnapshot
-
Method Summary
Modifier and TypeMethodDescriptiongetVariant(String feature) Returns the variant assigned to the current context.getVariant(String feature, Object featureContext) Returns the variant assigned to the current context.getVariantAsync(String feature) Returns the variant assigned to the current context.getVariantAsync(String feature, Object featureContext) Returns the variant assigned to the current context.Checks to see if the feature is enabled.Checks to see if the feature is enabled.isEnabledAsync(String feature) Checks to see if the feature is enabled.isEnabledAsync(String feature, Object featureContext) Checks to see if the feature is enabled.
-
Method Details
-
isEnabledAsync
Checks to see if the feature is enabled. If enabled it checks each filter, once a single filter returns true it returns true. If no filter returns true, it returns false. If there are no filters, it returns true. If feature isn't found it returns false.If isEnabled has already been called on this feature in this request, it will return the same value as it did before.
- Parameters:
feature- Feature being checked.- Returns:
- state of the feature
-
isEnabledAsync
Checks to see if the feature is enabled. If enabled it checks each filter, once a single filter returns true it returns true. If no filter returns true, it returns false. If there are no filters, it returns true. If feature isn't found it returns false.If isEnabled has already been called on this feature in this request, it will return the same value as it did before.
- Parameters:
feature- Feature being checked.featureContext- Local context- Returns:
- state of the feature
-
isEnabled
Checks to see if the feature is enabled. If enabled it checks each filter, once a single filter returns true it returns true. If no filter returns true, it returns false. If there are no filters, it returns true. If feature isn't found it returns false.If isEnabled has already been called on this feature in this request, it will return the same value as it did before.
- Parameters:
feature- Feature being checked.- Returns:
- state of the feature
-
isEnabled
Checks to see if the feature is enabled. If enabled it checks each filter, once a single filter returns true it returns true. If no filter returns true, it returns false. If there are no filters, it returns true. If feature isn't found it returns false.If isEnabled has already been called on this feature in this request, it will return the same value as it did before.
- Parameters:
feature- Feature being checked.featureContext- Local context- Returns:
- state of the feature
-
getVariantAsync
Returns the variant assigned to the current context.If getVariantAsync has already been called on this feature in this request, it will return the same value as it did before.
- Parameters:
feature- Feature being checked.- Returns:
- state of the feature
-
getVariantAsync
Returns the variant assigned to the current context.If getVariantAsync has already been called on this feature in this request, it will return the same value as it did before.
- Parameters:
feature- Feature being checked.featureContext- Local context- Returns:
- state of the feature
-
getVariant
-
getVariant
Returns the variant assigned to the current context.If getVariant has already been called on this feature in this request, it will return the same value as it did before.
- Parameters:
feature- Feature being checked.featureContext- Local context- Returns:
- state of the feature
-