Class: MemoryDurableInbox<T>
Defined in: packages/agentos/src/io/channels/meetings/DurableInbox.ts:18
An inbox in memory, for tests and single-process hosts: entries are copied in and out.
Type Parameters
T
T
Implements
Constructors
Constructor
new MemoryDurableInbox<
T>():MemoryDurableInbox<T>
Returns
MemoryDurableInbox<T>
Methods
accept()
accept(
entry):Promise<boolean>
Defined in: packages/agentos/src/io/channels/meetings/DurableInbox.ts:20
Stores a new entry; false, and nothing changes, when an entry with its id was accepted before (acknowledged or not).
Parameters
entry
InboxEntry<T>
Returns
Promise<boolean>
Implementation of
acknowledge()
acknowledge(
id):Promise<void>
Defined in: packages/agentos/src/io/channels/meetings/DurableInbox.ts:28
Drops the entry's payload once the receiver has acted on it; its id stays, so a replay is still refused.
Parameters
id
string
Returns
Promise<void>
Implementation of
pending()
pending():
Promise<InboxEntry<T>[]>
Defined in: packages/agentos/src/io/channels/meetings/DurableInbox.ts:25
The entries accepted and not yet acknowledged, oldest first.
Returns
Promise<InboxEntry<T>[]>