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
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    boolean
     
  • Element Details

    • feature

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

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

      boolean snapshot
      Returns:
      If true, feature will return the same value during the length of the request.
      Default:
      false