Annotation Type FeatureGate


@Retention(RUNTIME) @Target(METHOD) public @interface FeatureGate
THis annotation can be added to any endpoint and will check if the feature is on.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Return name of the feature that is checked.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Return endpoint to be fall backed on if feature is off.
    boolean
    If true, feature will return the same value during the length of the request.
  • Element Details

    • feature

      String feature
      Return name of the feature that is checked.
      Returns:
      Name of the feature that is checked.
    • fallback

      String fallback
      Return endpoint to be fall backed on if feature is off.
      Returns:
      Endpoint to be fall backed on if feature is off.
      Default:
      ""
    • snapshot

      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.
      Default:
      false