DefaultStashBuffer
in package
implements
StashBuffer
FinalYes
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
- 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
__construct()
public
__construct(int $capacity) : mixed
Parameters
- $capacity : int
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
unstashAll()
Replay all stashed envelopes through the target behavior, then continue with it.
public
unstashAll(Behavior<string|int, T> $targetBehavior) : Behavior<string|int, T>
Parameters
- $targetBehavior : Behavior<string|int, T>