Class TimeWindowFilter
java.lang.Object
com.azure.spring.cloud.feature.management.filters.TimeWindowFilter
- All Implemented Interfaces:
FeatureFilter
A feature filter that can be used at activate a feature based on a time window.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(FeatureFilterEvaluationContext context) Evaluates whether a feature is enabled based on a configurable time window.
-
Constructor Details
-
TimeWindowFilter
public TimeWindowFilter()Creates an instance ofTimeWindowFilter
-
-
Method Details
-
evaluate
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.
-