Interface ReplyEffect<Event,State>
- All Superinterfaces:
Effect<Event,
State>
- All Known Implementing Classes:
PersistNothing$
,Stash$
,Unhandled$
EventSourcedBehaviorWithEnforcedReplies
can be used to enforce that replies are not forgotten.
Then there will be compilation errors if the returned effect isn't a ReplyEffect
, which can be
created with Effects().reply
, Effects().noReply
, EffectBuilder.thenReply
, or EffectBuilder.thenNoReply
.-
Method Summary
Modifier and TypeMethodDescriptionUnstash the commands that were stashed withEffectFactories.stash
.
-
Method Details
-
thenUnstashAll
ReplyEffect<Event,State> thenUnstashAll()Unstash the commands that were stashed withEffectFactories.stash
.It's allowed to stash messages while unstashing. Those newly added commands will not be processed by this
unstashAll
effect and have to be unstashed by anotherunstashAll
.
-