Annotation Type Example


  • @Retention(RUNTIME)
    @Target({})
    public @interface Example
    An Optional annotation for storing an examples for a Siddhi Extension.
    
     eg:-
          @Extension(
                          ...
                          examples = {@Example(syntax = "from fooStream#window.time(10 sec)
                          select symbol as name, volume insert into barStream;",
                          description = "This will processing events that arrived within the last 10 seconds.")
          public CustomExtension extends ExtensionSuperClass {
              ...
          }
     
    • Element Detail

      • syntax

        String syntax
        Default:
        ""
      • description

        String description
        Default:
        ""