Interface Action.Effect<T>

  • Type Parameters:
    T - The type of the message that must be returned by this call.
    Enclosing class:
    Action

    public static interface Action.Effect<T>
    A return type to allow returning forwards or failures, and attaching effects to messages.
    • Method Detail

      • addSideEffect

        Action.Effect<T> addSideEffect​(SideEffect... sideEffects)
        Attach the given side effects to this reply.
        Parameters:
        sideEffects - The effects to attach.
        Returns:
        A new reply with the attached effects.
      • addSideEffects

        Action.Effect<T> addSideEffects​(java.util.Collection<SideEffect> sideEffects)
        Attach the given side effects to this reply.
        Parameters:
        sideEffects - The effects to attach.
        Returns:
        A new reply with the attached effects.