Package akka.javasdk.timedaction
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 Summary
Modifier and TypeMethodDescriptionasyncDone
(CompletionStage<akka.Done> message) Command was processed successfully from an async operation resultasyncEffect
(CompletionStage<TimedAction.Effect> futureEffect) Create a reply from an async operation result returning an effect.done()
Command was processed successfully.Create an error reply.
-
Method Details
-
done
TimedAction.Effect done()Command was processed successfully. -
asyncDone
Command was processed successfully from an async operation result -
error
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.
-