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(JournalCatalogListOptions?, CancellationToken)

View source
public IAsyncEnumerable<JournalCatalogEntry> ListAsync(JournalCatalogListOptions? options = null, CancellationToken cancellationToken = default(CancellationToken))
Enumerates journal entries matching the supplied options.

Parameters

optionsJournalCatalogListOptions?
The listing options, or null to list all entries without metadata.
cancellationTokenCancellationToken
The cancellation token.

Returns

Matching entries in provider traversal order.

Exceptions

System.OperationCanceledException
cancellationToken is canceled.