Table of Contents

Interface IDynamoDbCdcStateStore

Namespace
Excalibur.Cdc.DynamoDb
Assembly
Excalibur.Cdc.DynamoDb.dll

Defines the contract for managing DynamoDB CDC position state.

public interface IDynamoDbCdcStateStore : ICdcStateStore, IAsyncDisposable, IDisposable
Inherited Members

Remarks

Extends the shared ICdcStateStore contract with DynamoDB-specific strongly-typed position accessors.

Methods

DeletePositionAsync(string, CancellationToken)

Deletes the saved position for a processor.

Task DeletePositionAsync(string processorName, CancellationToken cancellationToken)

Parameters

processorName string

The unique processor name.

cancellationToken CancellationToken

A token to observe for cancellation requests.

Returns

Task

A task representing the asynchronous operation.

GetPositionAsync(string, CancellationToken)

Gets the last saved position for a processor.

Task<DynamoDbCdcPosition?> GetPositionAsync(string processorName, CancellationToken cancellationToken)

Parameters

processorName string

The unique processor name.

cancellationToken CancellationToken

A token to observe for cancellation requests.

Returns

Task<DynamoDbCdcPosition>

The last saved position, or null if no position exists.

SavePositionAsync(string, DynamoDbCdcPosition, CancellationToken)

Saves the current position for a processor.

Task SavePositionAsync(string processorName, DynamoDbCdcPosition position, CancellationToken cancellationToken)

Parameters

processorName string

The unique processor name.

position DynamoDbCdcPosition

The position to save.

cancellationToken CancellationToken

A token to observe for cancellation requests.

Returns

Task

A task representing the asynchronous operation.