Interface ReplyEffect<State>
-
- All Superinterfaces:
Effect<State>
- All Known Implementing Classes:
PersistNothing$
,Stash$
,Unhandled$
public interface ReplyEffect<State> extends Effect<State>
DurableStateBehavior.withEnforcedReplies
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 withEffect.reply
,Effect.noReply
,EffectBuilder.thenReply
, orEffectBuilder.thenNoReply
.Not intended for user extension.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReplyEffect<State>
thenStop()
Stops the actor as a side effectReplyEffect<State>
thenUnstashAll()
Unstash the commands that were stashed withEffect.stash
.
-
-
-
Method Detail
-
thenStop
ReplyEffect<State> thenStop()
Stops the actor as a side effect
-
thenUnstashAll
ReplyEffect<State> thenUnstashAll()
Unstash the commands that were stashed withEffect.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
.
-
-