Table of Contents

Interface IInMemoryCdcStore

Namespace
Excalibur.Cdc.InMemory
Assembly
Excalibur.Cdc.dll

Defines the contract for an in-memory CDC change store.

public interface IInMemoryCdcStore
Extension Methods

Remarks

This interface provides methods to add, retrieve, and manage CDC changes in memory for testing scenarios.

Methods

AddChange(InMemoryCdcChange)

Adds a simulated CDC change to the store.

void AddChange(InMemoryCdcChange change)

Parameters

change InMemoryCdcChange

The change to add.

Clear()

Clears all changes from the store.

void Clear()

GetPendingChanges(int)

Gets all pending changes that have not been processed.

IReadOnlyList<InMemoryCdcChange> GetPendingChanges(int maxCount)

Parameters

maxCount int

The maximum number of changes to retrieve.

Returns

IReadOnlyList<InMemoryCdcChange>

A collection of pending changes.

GetPendingCount()

Gets the total count of pending changes.

int GetPendingCount()

Returns

int

The number of pending changes.

MarkAsProcessed(IEnumerable<InMemoryCdcChange>)

Marks the specified changes as processed.

void MarkAsProcessed(IEnumerable<InMemoryCdcChange> changes)

Parameters

changes IEnumerable<InMemoryCdcChange>

The changes to mark as processed.