Class Unhandled$
java.lang.Object
org.apache.pekko.persistence.typed.javadsl.EffectBuilder<Event,State>
org.apache.pekko.persistence.typed.internal.Unhandled$
- All Implemented Interfaces:
Serializable,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$> scala.Equals,scala.Product
INTERNAL API
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Unhandled$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanscala.collection.immutable.Seq<scala.runtime.Nothing$>events()inthashCode()intproductElement(int x$1) scala.collection.Iterator<Object>org.apache.pekko.persistence.typed.internal.EffectImpl<scala.runtime.Nothing$,scala.runtime.Nothing$> WhenEventSourcedBehaviorWithEnforcedRepliesis used there will be compilation errors if the returned effect isn't aReplyEffect.<ReplyMessage>
org.apache.pekko.persistence.typed.internal.EffectImpl<scala.runtime.Nothing$,scala.runtime.Nothing$> thenReply(ActorRef<ReplyMessage> replyTo, scala.Function1<scala.runtime.Nothing$, ReplyMessage> replyWithMessage) Send a reply message to the command.org.apache.pekko.persistence.typed.internal.EffectImpl<scala.runtime.Nothing$,scala.runtime.Nothing$> thenRun(scala.Function1<scala.runtime.Nothing$, scala.runtime.BoxedUnit> chainedEffect) Run the given callback.org.apache.pekko.persistence.typed.internal.EffectImpl<scala.runtime.Nothing$,scala.runtime.Nothing$> thenStop()The side effect is to stop the actororg.apache.pekko.persistence.typed.internal.EffectImpl<scala.runtime.Nothing$,scala.runtime.Nothing$> Unstash the commands that were stashed withEffectFactories.stash.toString()Methods inherited from class org.apache.pekko.persistence.typed.javadsl.EffectBuilder
thenReply, thenRun, thenRunMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Equals
equalsMethods inherited from interface scala.Product
productElementName, productElementNames
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Unhandled$
public Unhandled$()
-
-
Method Details
-
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
hashCode
public int hashCode() -
toString
-
events
public scala.collection.immutable.Seq<scala.runtime.Nothing$> events()- Specified by:
eventsin interfaceEffectBuilder<Event,State>
-
thenNoReply
public org.apache.pekko.persistence.typed.internal.EffectImpl<scala.runtime.Nothing$,scala.runtime.Nothing$> 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> org.apache.pekko.persistence.typed.internal.EffectImpl<scala.runtime.Nothing$,scala.runtime.Nothing$> thenReply(ActorRef<ReplyMessage> replyTo, scala.Function1<scala.runtime.Nothing$, 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 org.apache.pekko.persistence.typed.internal.EffectImpl<scala.runtime.Nothing$,scala.runtime.Nothing$> thenRun(scala.Function1<scala.runtime.Nothing$, scala.runtime.BoxedUnit> chainedEffect) Description copied from interface:EffectBuilderRun the given callback. Callbacks are run sequentially.- Specified by:
thenRunin interfaceEffectBuilder<Event,State>
-
thenStop
public org.apache.pekko.persistence.typed.internal.EffectImpl<scala.runtime.Nothing$,scala.runtime.Nothing$> 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 org.apache.pekko.persistence.typed.internal.EffectImpl<scala.runtime.Nothing$,scala.runtime.Nothing$> 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>
-