Package akka.persistence.typed.javadsl
Interface ReplyEffect<Event,State>
-
- All Superinterfaces:
Effect<Event,State>
- All Known Implementing Classes:
PersistNothing$
,Stash$
,Unhandled$
public interface ReplyEffect<Event,State> extends Effect<Event,State>
EventSourcedBehaviorWithEnforcedReplies
can be used to enforce that replies are not forgotten. Then there will be compilation errors if the returned effect isn't aReplyEffect
, which can be created withEffects().reply
,Effects().noReply
,EffectBuilder.thenReply
, orEffectBuilder.thenNoReply
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReplyEffect<Event,State>
thenStop()
Stops the actor as a side effectReplyEffect<Event,State>
thenUnstashAll()
Unstash the commands that were stashed withEffectFactories.stash
.
-
-
-
Method Detail
-
thenStop
ReplyEffect<Event,State> thenStop()
Stops the actor as a side effect
-
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
.
-
-