你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
TimeWindowFilter Class
- java.
lang. Object - com.
azure. spring. cloud. feature. management. filters. TimeWindowFilter
- com.
Implements
public final class TimeWindowFilter
implements FeatureFilter
A feature filter that can be used at activate a feature based on a time window.
Constructor Summary
Constructor | Description |
---|---|
TimeWindowFilter() |
Creates an instance of TimeWindowFilter |
Method Summary
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(FeatureFilterEvaluationContext context)
Evaluates whether a feature is enabled based on a configurable time window. |
Methods inherited from java.lang.Object
Constructor Details
TimeWindowFilter
public TimeWindowFilter()
Creates an instance of TimeWindowFilter
Method Details
evaluate
public boolean evaluate(FeatureFilterEvaluationContext context)
Evaluates whether a feature is enabled based on a configurable time window.
Parameters:
context
- The feature evaluation context.
Returns:
True if the feature is enabled, false otherwise.