Interface StashManagement<C,​S>


  • public interface StashManagement<C,​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.state.internal.BehaviorSetup<C,​S> setup()
      • stashState

        akka.persistence.typed.state.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.