Package akka.persistence.typed.internal
Class Stash$
- java.lang.Object
-
- akka.persistence.typed.javadsl.EffectBuilder<Event,State>
-
- akka.persistence.typed.internal.Stash$
-
- All Implemented Interfaces:
Effect<scala.runtime.Nothing$,scala.runtime.Nothing$>,ReplyEffect<scala.runtime.Nothing$,scala.runtime.Nothing$>,Effect<scala.runtime.Nothing$,scala.runtime.Nothing$>,EffectBuilder<scala.runtime.Nothing$,scala.runtime.Nothing$>,ReplyEffect<scala.runtime.Nothing$,scala.runtime.Nothing$>,java.io.Serializable,scala.Equals,scala.Product
public class Stash$ extends EffectBuilder<Event,State> implements scala.Product, java.io.Serializable
INTERNAL API- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Stash$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEqual(java.lang.Object x$1)scala.collection.immutable.Seq<Event>events()inthashCode()intproductArity()java.lang.ObjectproductElement(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()akka.persistence.typed.internal.EffectImpl<Event,State>thenNoReply()WhenEventSourcedBehaviorWithEnforcedRepliesis used there will be compilation errors if the returned effect isn't aReplyEffect.<ReplyMessage>
akka.persistence.typed.internal.EffectImpl<Event,State>thenReply(ActorRef<ReplyMessage> replyTo, scala.Function1<State,ReplyMessage> replyWithMessage)Send a reply message to the command.akka.persistence.typed.internal.EffectImpl<Event,State>thenRun(scala.Function1<State,scala.runtime.BoxedUnit> chainedEffect)Run the given callback.akka.persistence.typed.internal.EffectImpl<Event,State>thenStop()The side effect is to stop the actorakka.persistence.typed.internal.EffectImpl<Event,State>thenUnstashAll()Unstash the commands that were stashed withEffectFactories.stash.java.lang.StringtoString()-
Methods inherited from class akka.persistence.typed.javadsl.EffectBuilder
thenReply, thenRun, thenRun
-
-
-
-
Field Detail
-
MODULE$
public static final Stash$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
events
public scala.collection.immutable.Seq<Event> events()
- Specified by:
eventsin interfaceEffectBuilder<Event,State>
-
thenNoReply
public akka.persistence.typed.internal.EffectImpl<Event,State> thenNoReply()
Description copied from class:EffectBuilderWhenEventSourcedBehaviorWithEnforcedRepliesis used there will be compilation errors if the returned effect isn't aReplyEffect. ThisthenNoReplycan be used as a conscious decision that a reply shouldn't be sent for a specific command or the reply will be sent later.- Specified by:
thenNoReplyin interfaceEffectBuilder<Event,State>- Specified by:
thenNoReplyin classEffectBuilder<Event,State>
-
thenReply
public <ReplyMessage> akka.persistence.typed.internal.EffectImpl<Event,State> thenReply(ActorRef<ReplyMessage> replyTo, scala.Function1<State,ReplyMessage> replyWithMessage)
Description copied from interface:EffectBuilderSend a reply message to the command. The type of the reply message must conform to the type specified by the passed replyToActorRef.This has the same semantics as
replyTo.tell.It is provided as a convenience (reducing boilerplate) and a way to enforce that replies are not forgotten when the
EventSourcedBehavioris created withEventSourcedBehavior.withEnforcedReplies. WhenwithEnforcedRepliesis used there will be compilation errors if the returned effect isn't aReplyEffect. The reply message will be sent also ifwithEnforcedRepliesisn't used, but then the compiler will not help finding mistakes.- Specified by:
thenReplyin interfaceEffectBuilder<Event,State>
-
thenRun
public akka.persistence.typed.internal.EffectImpl<Event,State> thenRun(scala.Function1<State,scala.runtime.BoxedUnit> chainedEffect)
Description copied from interface:EffectBuilderRun the given callback. Callbacks are run sequentially.- Specified by:
thenRunin interfaceEffectBuilder<Event,State>
-
thenStop
public akka.persistence.typed.internal.EffectImpl<Event,State> thenStop()
Description copied from class:EffectBuilderThe side effect is to stop the actor- Specified by:
thenStopin interfaceEffectBuilder<Event,State>- Specified by:
thenStopin classEffectBuilder<Event,State>
-
thenUnstashAll
public akka.persistence.typed.internal.EffectImpl<Event,State> thenUnstashAll()
Description copied from class:EffectBuilderUnstash 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
unstashAlleffect and have to be unstashed by anotherunstashAll.- Specified by:
thenUnstashAllin interfaceEffectBuilder<Event,State>- Specified by:
thenUnstashAllin interfaceReplyEffect<Event,State>- Specified by:
thenUnstashAllin interfaceReplyEffect<Event,State>- Specified by:
thenUnstashAllin classEffectBuilder<Event,State>
-
-