Pular para o conteúdo
Português (BR)

StashBuffer

Este conteúdo não está disponível em sua língua ainda.

Defined in: src/typed/Behavior.ts:113

Lightweight stash interface handed to Behaviors.withStash factories. Thin wrapper over the OO context.stash() API so the typed DSL keeps the same guarantees (FIFO, capacity, overflow error).

T

readonly isEmpty: boolean

Defined in: src/typed/Behavior.ts:119

True if the buffer holds any message.


readonly isFull: boolean

Defined in: src/typed/Behavior.ts:121

True if the buffer is at capacity.


readonly size: number

Defined in: src/typed/Behavior.ts:123

Current number of stashed messages.

stash(message): void

Defined in: src/typed/Behavior.ts:115

Stash the current message; must be called during a user message.

T

void


unstashAll(): void

Defined in: src/typed/Behavior.ts:117

Replay the buffered messages back onto the mailbox.

void