Table of Contents

Interface IOutboxStoreBatch

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

Provides batch and transactional operations for outbox stores. Implementations that support efficient batch operations should implement this interface alongside IOutboxStore.

public interface IOutboxStoreBatch
Extension Methods

Methods

MarkBatchFailedAsync(IReadOnlyList<string>, string, int, CancellationToken)

Marks a batch of messages as failed.

ValueTask MarkBatchFailedAsync(IReadOnlyList<string> messageIds, string reason, int retryCount, CancellationToken cancellationToken)

Parameters

messageIds IReadOnlyList<string>
reason string
retryCount int
cancellationToken CancellationToken

Returns

ValueTask

MarkBatchSentAsync(IReadOnlyList<string>, CancellationToken)

Marks a batch of messages as successfully sent.

ValueTask MarkBatchSentAsync(IReadOnlyList<string> messageIds, CancellationToken cancellationToken)

Parameters

messageIds IReadOnlyList<string>
cancellationToken CancellationToken

Returns

ValueTask

TryMarkSentAndReceivedAsync(string, InboxEntry, CancellationToken)

Atomically marks message as sent and creates the inbox entry in one transaction, so a redelivery is skipped rather than reprocessed (effectively-once processing; delivery remains at-least-once).

ValueTask<bool> TryMarkSentAndReceivedAsync(string messageId, InboxEntry inboxEntry, CancellationToken cancellationToken)

Parameters

messageId string
inboxEntry InboxEntry
cancellationToken CancellationToken

Returns

ValueTask<bool>