Compartilhar via


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()

Return endpoint to be fall backed on if feature is off.

abstract String feature()

Return name of the feature that is checked.

abstract boolean snapshot()

If true, feature will return the same value during the length of the request.

Method Details

fallback

public abstract String fallback()

Return endpoint to be fall backed on if feature is off.

Returns:

Endpoint to be fall backed on if feature is off.

feature

public abstract String feature()

Return name of the feature that is checked.

Returns:

Name of the feature that is checked.

snapshot

public abstract boolean snapshot()

If true, feature will return the same value during the length of the request.

Returns:

If true, feature will return the same value during the length of the request.

Applies to