Class TimeWindowFilter
- java.lang.Object
-
- com.azure.spring.cloud.feature.manager.feature.filters.TimeWindowFilter
-
- All Implemented Interfaces:
FeatureFilter
@Component("TimeWindowFilter") public class TimeWindowFilter extends Object implements FeatureFilterA feature filter that can be used at activate a feature based on a time window.
-
-
Constructor Summary
Constructors Constructor Description TimeWindowFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(FeatureFilterEvaluationContext context)Evaluates whether a feature is enabled based on a configurable time window.
-
-
-
Method Detail
-
evaluate
public boolean evaluate(FeatureFilterEvaluationContext context)
Evaluates whether a feature is enabled based on a configurable time window.- Specified by:
evaluatein interfaceFeatureFilter- Parameters:
context- The feature evaluation context.- Returns:
- True if the feature is enabled, false otherwise.
-
-