Interface Consumer.Effect

Enclosing class:
Consumer

public static interface Consumer.Effect
An Effect is a description of what the runtime needs to do after the command 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 (in case the method is a publisher)
  • return Done to indicate that the message was processed successfully
  • ignore the call
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Construct the effect that is returned by the message handler.