Annotation Type EventSourceConsumer


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

    Required Elements
    Modifier and Type Required Element Description
    java.lang.String eventSource
    In some situations there might be multiple EventSource beans for a single event stream.
    java.lang.Class<?> payloadType
    The type of the Message.getPayload() produced by the EventSource
  • Optional Element Summary

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

    • eventSource

      java.lang.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

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

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