Package akka.javasdk.annotations
Annotation Interface Produce.ServiceStream
- Enclosing class:
Produce
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.
Add Acl to the class to control which services can consume the stream. It applies to
the whole stream and is not allowed on methods. Without Acl, all services in the same
project can consume the stream, and it is not available from the internet.
-
Required Element Summary
Required Elements
-
Element Details
-
id
String idIdentifier for the event stream. Must be unique inside the same service.
-