Package de.otto.synapse.annotation
Annotation Interface EventSourceConsumer
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionIn some situations there might be multiple EventSource beans for a single event stream.Class<?>The type of theMessage.getPayload()produced by theEventSource -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThe regex pattern to filter events by their of that the consumer should receive.
-
Element Details
-
eventSource
String eventSourceIn 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<?> payloadTypeThe type of theMessage.getPayload()produced by theEventSource- Returns:
- payload type
-
-
-
keyPattern
String keyPatternThe regex pattern to filter events by their of that the consumer should receive.- Returns:
- of pattern; defaults to
.*
- Default:
- ".*"
-