Interface Effect<Event,​State>

  • All Known Subinterfaces:
    ReplyEffect<Event,​State>
    All Known Implementing Classes:
    EffectBuilder, PersistNothing$, Stash$, Unhandled$

    public interface Effect<Event,​State>
    A command handler returns an Effect directive that defines what event or events to persist.

    Instances of Effect are available through factories EventSourcedBehavior.Effect.

    Not intended for user extension.