Annotation Interface CloudEventMapping


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface CloudEventMapping
Describes input and output cloud events for function for Knative Cloud Events Applied to a @Funq method
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    If there is an extra requirement to match against cloud event attributes to find the function to be triggered
    If the function has output, this describes the cloud event source of the output event Defaults to function name
    If the function has output, this describes the cloud event type of the output event Defaults to {function}.output
    Defines the cloud event type that will trigger the function Defaults to function name
  • Element Details

    • trigger

      String trigger
      Defines the cloud event type that will trigger the function Defaults to function name
      Returns:
      Default:
      ""
    • responseSource

      String responseSource
      If the function has output, this describes the cloud event source of the output event Defaults to function name
      Returns:
      Default:
      ""
    • responseType

      String responseType
      If the function has output, this describes the cloud event type of the output event Defaults to {function}.output
      Returns:
      Default:
      ""
    • attributes

      EventAttribute[] attributes
      If there is an extra requirement to match against cloud event attributes to find the function to be triggered
      Returns:
      Default:
      {}