Interface TimedAction.Effect.Builder

Enclosing interface:
TimedAction.Effect

public static interface TimedAction.Effect.Builder
Construct the effect that is returned by the command handler. The effect describes next processing actions, such as sending a reply.
  • Method Details

    • done

      Command was processed successfully.
    • asyncDone

      TimedAction.Effect asyncDone(CompletionStage<akka.Done> message)
      Command was processed successfully from an async operation result
    • error

      TimedAction.Effect error(String description)
      Create an error reply.
      Parameters:
      description - The description of the error.
      Returns:
      An error reply.
    • asyncEffect

      Create a reply from an async operation result returning an effect.
      Parameters:
      futureEffect - The future effect to reply with.
      Returns:
      A reply, the actual type depends on the nested Effect.