Nexus API Reference

DefaultStashBuffer
in package
implements StashBuffer

FinalYes
Tags
psalm-api

Default stash buffer implementation.

template

T of object

implements

StashBuffer<T>

Table of Contents

Interfaces

StashBuffer

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

stash()

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>
Return values
Behavior<string|int, T>

        
On this page

Search results