FeatureGate Interface
Implements
public interface FeatureGate
implements Annotation
THis annotation can be added to any endpoint and will check if the feature is on.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract String | fallback() |
abstract String | feature() |
abstract boolean | snapshot() |
Method Details
fallback
public abstract String fallback()
Returns:
Endpoint to be fall backed on if feature is off.
feature
public abstract String feature()
Returns:
Name of the feature that is checked.
snapshot
public abstract boolean snapshot()
Returns:
If true, feature will return the same value during the length of the request.