Annotation Interface Produce.ServiceStream

Enclosing class:
Produce

@Target(TYPE) @Retention(RUNTIME) @Documented public static @interface Produce.ServiceStream
Annotation to configure the component to produce an event stream that can be consumed by other services.

The event handler should depend only on the incoming event and should not call other components or external systems. Consuming services replay the stream, so the handler runs again for already transformed events. The handler may be invoked in parallel and without ordering guarantees, so it should not keep state or depend on the order of events.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Identifier for the event stream.
  • Element Details

    • id

      String id
      Identifier for the event stream. Must be unique inside the same service.