Interface StashManagement<C,E,S>
public interface StashManagement<C,E,S>
INTERNAL API: Stash management for persistent behaviors
-
Method Summary
Modifier and TypeMethodDescriptioncontext()booleanbooleanvoidlogStashMessage(InternalProtocol msg, StashBuffer<InternalProtocol> buffer) voidvoidlogUnstashMessage(StashBuffer<InternalProtocol> buffer) setup()voidstash(InternalProtocol msg, StashBuffer<InternalProtocol> buffer) Stash a command to the internal stash buffer, which is used while waiting for persist to be completed.org.apache.pekko.persistence.typed.internal.StashStatevoidStash a command to the user stash buffer, which is used whenStasheffect is used.tryUnstashOne(Behavior<InternalProtocol> behavior) tryUnstashOneis called at the end of processing each command, published event, or when persist is completedvoidSubsequenttryUnstashOnewill drain the user stash buffer before using the internal stash buffer.
-
Method Details
-
context
ActorContext<InternalProtocol> context() -
isInternalStashEmpty
boolean isInternalStashEmpty() -
isUnstashAllInProgress
boolean isUnstashAllInProgress() -
logStashMessage
-
logUnstashAll
void logUnstashAll() -
logUnstashMessage
-
setup
-
stash
-
stashInternal
Stash a command to the internal stash buffer, which is used while waiting for persist to be completed. -
stashState
org.apache.pekko.persistence.typed.internal.StashState stashState() -
stashUser
Stash a command to the user stash buffer, which is used whenStasheffect is used. -
tryUnstashOne
tryUnstashOneis called at the end of processing each command, published event, or when persist is completed -
unstashAll
void unstashAll()SubsequenttryUnstashOnewill drain the user stash buffer before using the internal stash buffer. It will unstash as many commands as are in the buffer whenunstashAllwas called, i.e. if subsequent commands stash more, those will not be unstashed untilunstashAllis called again.
-