Skip to content

VolatileJournalStorageProvider Methods

Provides shared in-memory journal storage instances identified by journal id.

CreateStorage(JournalId)

View source
public IJournalStorage CreateStorage(JournalId journalId)
Creates journal storage for the provided journal id.

Parameters

journalIdJournalId
The journal id.

Returns

The journal storage instance.

ListAsync(JournalId, CancellationToken)

View source
public IAsyncEnumerable<JournalId> ListAsync(JournalId prefix = default(JournalId), CancellationToken cancellationToken = default(CancellationToken))
Lists journal ids which match prefix.

Parameters

prefixJournalId
The journal id prefix, or the default value to list all ids.
cancellationTokenCancellationToken
The cancellation token.

Returns

Matching ids in lexicographic JournalId order.