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 Detail
-
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 theMessage.getPayload()produced by theEventSource- Returns:
- payload type
-
-