Annotation Interface EventSourceConsumer


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface EventSourceConsumer
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    In some situations there might be multiple EventSource beans for a single event stream.
    The type of the Message.getPayload() produced by the EventSource
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The regex pattern to filter events by their of that the consumer should receive.
  • Element Details

    • eventSource

      String eventSource
      In some situations there might be multiple EventSource beans for a single event stream. In this case, the eventSource attribute can be used to select one of the available beans.
      Returns:
      name of the EventSource bean to register the EventConsumer.
    • payloadType

      Class<?> payloadType
      The type of the Message.getPayload() produced by the EventSource
      Returns:
      payload type
    • keyPattern

      String keyPattern
      The regex pattern to filter events by their of that the consumer should receive.
      Returns:
      of pattern; defaults to .*
      Default:
      ".*"