Class PersistNothing$

  • All Implemented Interfaces:
    Effect<scala.runtime.Nothing$>, ReplyEffect<scala.runtime.Nothing$>, Effect<scala.runtime.Nothing$>, EffectBuilder<scala.runtime.Nothing$>, ReplyEffect<scala.runtime.Nothing$>, java.io.Serializable, scala.Equals, scala.Product

    public class PersistNothing$
    extends EffectBuilder<State>
    implements scala.Product, java.io.Serializable
    INTERNAL API
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static PersistNothing$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      PersistNothing$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canEqual​(java.lang.Object x$1)  
      int hashCode()  
      int productArity()  
      java.lang.Object productElement​(int x$1)  
      scala.collection.Iterator<java.lang.Object> productIterator()  
      java.lang.String productPrefix()  
      scala.Option<State> state()  
      akka.persistence.typed.state.internal.EffectImpl<State> thenNoReply()
      When DurableStateBehaviorWithEnforcedReplies is used there will be compilation errors if the returned effect isn't a ReplyEffect.
      <ReplyMessage>
      akka.persistence.typed.state.internal.EffectImpl<State>
      thenReply​(ActorRef<ReplyMessage> replyTo, scala.Function1<State,​ReplyMessage> replyWithMessage)
      Send a reply message to the command.
      akka.persistence.typed.state.internal.EffectImpl<State> thenRun​(scala.Function1<State,​scala.runtime.BoxedUnit> chainedEffect)
      Run the given callback.
      akka.persistence.typed.state.internal.EffectImpl<State> thenStop()
      The side effect is to stop the actor
      akka.persistence.typed.state.internal.EffectImpl<State> thenUnstashAll()
      Unstash the commands that were stashed with EffectFactories.stash.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Equals

        equals
      • Methods inherited from interface scala.Product

        productElementName, productElementNames
    • Field Detail

      • MODULE$

        public static final PersistNothing$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • PersistNothing$

        public PersistNothing$()
    • Method Detail

      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • state

        public scala.Option<State> state()
        Specified by:
        state in interface EffectBuilder<State>
      • thenReply

        public <ReplyMessage> akka.persistence.typed.state.internal.EffectImpl<State> thenReply​(ActorRef<ReplyMessage> replyTo,
                                                                                                scala.Function1<State,​ReplyMessage> replyWithMessage)
        Description copied from interface: EffectBuilder
        Send a reply message to the command. The type of the reply message must conform to the type specified by the passed replyTo ActorRef.

        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 DurableStateBehavior is created with DurableStateBehavior.withEnforcedReplies. When withEnforcedReplies is used there will be compilation errors if the returned effect isn't a ReplyEffect. The reply message will be sent also if withEnforcedReplies isn't used, but then the compiler will not help finding mistakes.

        Specified by:
        thenReply in interface EffectBuilder<State>
      • thenRun

        public akka.persistence.typed.state.internal.EffectImpl<State> thenRun​(scala.Function1<State,​scala.runtime.BoxedUnit> chainedEffect)
        Description copied from interface: EffectBuilder
        Run the given callback. Callbacks are run sequentially.
        Specified by:
        thenRun in interface EffectBuilder<State>
      • thenUnstashAll

        public akka.persistence.typed.state.internal.EffectImpl<State> thenUnstashAll()
        Description copied from class: EffectBuilder
        Unstash the commands that were stashed with EffectFactories.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 another unstashAll.

        Specified by:
        thenUnstashAll in interface EffectBuilder<State>
        Specified by:
        thenUnstashAll in interface ReplyEffect<State>
        Specified by:
        thenUnstashAll in interface ReplyEffect<State>
        Specified by:
        thenUnstashAll in class EffectBuilder<State>