Interface StashManagement<C,​E,​S>


  • public interface StashManagement<C,​E,​S>
    INTERNAL API: Stash management for persistent behaviors
    • Method Detail

      • isInternalStashEmpty

        boolean isInternalStashEmpty()
      • isStashEmpty

        boolean isStashEmpty()
        Returns:
        false if tryUnstashOne will unstash a message
      • isUnstashAllInProgress

        boolean isUnstashAllInProgress()
      • logUnstashAll

        void logUnstashAll()
      • setup

        akka.persistence.typed.internal.BehaviorSetup<C,​E,​S> setup()
      • stashState

        akka.persistence.typed.internal.StashState stashState()
      • stashUser

        void stashUser​(InternalProtocol msg)
        Stash a command to the user stash buffer, which is used when Stash effect is used.
      • unstashAll

        void unstashAll()
        Subsequent tryUnstashOne will drain the user stash buffer before using the internal stash buffer. It will unstash as many commands as are in the buffer when unstashAll was called, i.e. if subsequent commands stash more, those will not be unstashed until unstashAll is called again.