Package akka.javasdk.consumer
Interface Consumer.Effect
- Enclosing class:
Consumer
public static interface Consumer.Effect
An Effect is a description of what the runtime needs to do after a message is handled. You can
think of it as a set of instructions you are passing to the runtime, which will process the
instructions on your behalf.
Each component defines its own effects, which are a set of predefined operations that match the capabilities of that component.
A Consumer Effect can either:
- return a message to be published to a Topic (when the Consumer is also a producer)
- return Done to indicate that the message was processed successfully
- ignore the message and continue processing the next message
For more details, refer to the Declarative Effects documentation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder for constructing Consumer effects that describe what the runtime should do after message processing.