Applies the passed flow
to the messages processed by this subscriber.
Applies the passed flow
to the messages processed by this subscriber. Messages are delivered to the passed
flow
at least once.
If a failure occurs (e.g., an exception is thrown), the stream may be automatically restarted starting with the message that caused the failure.
Whether the stream is automatically restarted depends on the Lagom message broker implementation in use. If the Kafka Lagom message broker module is being used, then by default the stream is automatically restarted when a failure occurs.
The flow
may pull more elements from upstream but it must emit exactly one Done
message for each message that
it receives. It must also emit them in the same order that the messages were received. This means that the flow
must not filter or collect a subset of the messages, instead it must split the messages into separate streams and
map those that would have been dropped to Done
.
The flow to apply to each received message.
A Future
that will be completed if the flow
completes.
Returns a stream of messages with at most once delivery semantic.
Returns a stream of messages with at most once delivery semantic.
If a failure occurs (e.g., an exception is thrown), the user is responsible of deciding how to recover from it (e.g., restarting the stream, aborting, ...).
Returns a copy of this subscriber with the passed group id.
Returns a copy of this subscriber with the passed group id.
The group id to assign to this subscriber.
A copy of this subscriber with the passed group id.
Returns this subscriber, but message payloads are wrapped in Message instances to allow accessing any metadata associated with the message.
Returns this subscriber, but message payloads are wrapped in Message instances to allow accessing any metadata associated with the message.
A copy of this subscriber.
A Subscriber for consuming messages from a message broker.