Package de.otto.synapse.annotation
Annotation Type EventSourceConsumer
@Target(METHOD)
@Retention(RUNTIME)
@Documented
public @interface EventSourceConsumer
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringeventSourceIn some situations there might be multiple EventSource beans for a single event stream.java.lang.Class<?>payloadTypeThe type of theMessage.getPayload()produced by theEventSource -
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringkeyPatternThe regex pattern to filter events by their of that the consumer should receive.
-
Element Details
-
eventSource
java.lang.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
java.lang.Class<?> payloadTypeThe type of theMessage.getPayload()produced by theEventSource- Returns:
- payload type
-
-
-
keyPattern
java.lang.String keyPatternThe regex pattern to filter events by their of that the consumer should receive.- Returns:
- of pattern; defaults to
.*
- Default:
- ".*"
-