StashBuffer
in
Tags
Table of Contents
Methods
- capacity() : int
- isEmpty() : bool
- isFull() : bool
- size() : int
- stash() : void
- Stash the given envelope for later replay.
- unstashAll() : Behavior<string|int, T>
- Replay all stashed envelopes through the target behavior, then continue with it.
Methods
capacity()
public
capacity() : int
Return values
intisEmpty()
public
isEmpty() : bool
Return values
boolisFull()
public
isFull() : bool
Return values
boolsize()
public
size() : int
Return values
intstash()
Stash the given envelope for later replay.
public
stash(Envelope $envelope) : void
Parameters
- $envelope : Envelope
Tags
unstashAll()
Replay all stashed envelopes through the target behavior, then continue with it.
public
unstashAll(Behavior<string|int, T> $targetBehavior) : Behavior<string|int, T>
If the buffer is empty, returns the target behavior directly. Otherwise, returns a special behavior that ActorCell will recognize and replay inline.
Parameters
- $targetBehavior : Behavior<string|int, T>