Table of Contents

Interface IOfflineChangeJournal

Namespace
Honua.Sdk.Offline.Abstractions
Assembly
Honua.Sdk.Abstractions.dll

Change journal adapter for local offline edit operations.

public interface IOfflineChangeJournal

Methods

EnqueueAsync(OfflineChangeJournalEntry, CancellationToken)

Adds a local edit operation to the change journal.

Task EnqueueAsync(OfflineChangeJournalEntry entry, CancellationToken cancellationToken = default)

Parameters

entry OfflineChangeJournalEntry

Change journal entry.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task that completes when the entry is stored.

GetPendingAsync(string, int, CancellationToken)

Gets pending local edit operations for a package.

Task<IReadOnlyList<OfflineChangeJournalEntry>> GetPendingAsync(string packageId, int maxCount, CancellationToken cancellationToken = default)

Parameters

packageId string

Offline package identifier.

maxCount int

Maximum number of operations to return.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<IReadOnlyList<OfflineChangeJournalEntry>>

Pending operations ordered for upload.

MarkConflictAsync(OfflineConflictEnvelope, CancellationToken)

Records a conflict that requires review or host-specific resolution.

Task MarkConflictAsync(OfflineConflictEnvelope conflict, CancellationToken cancellationToken = default)

Parameters

conflict OfflineConflictEnvelope

Conflict envelope.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task that completes when the journal is updated.

MarkFailedAsync(string, string, CancellationToken)

Records an unrecoverable upload failure.

Task MarkFailedAsync(string operationId, string reason, CancellationToken cancellationToken = default)

Parameters

operationId string

Operation identifier.

reason string

Failure reason.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task that completes when the journal is updated.

MarkPendingAsync(string, CancellationToken)

Releases a claimed operation back to pending state.

Task MarkPendingAsync(string operationId, CancellationToken cancellationToken = default)

Parameters

operationId string

Operation identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task that completes when the journal is updated.

MarkRetryAsync(OfflineRetryCheckpoint, CancellationToken)

Records a retryable upload failure.

Task MarkRetryAsync(OfflineRetryCheckpoint checkpoint, CancellationToken cancellationToken = default)

Parameters

checkpoint OfflineRetryCheckpoint

Retry checkpoint.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task that completes when the journal is updated.

MarkSucceededAsync(string, CancellationToken)

Marks an operation as uploaded successfully.

Task MarkSucceededAsync(string operationId, CancellationToken cancellationToken = default)

Parameters

operationId string

Operation identifier.

cancellationToken CancellationToken

Cancellation token.

Returns

Task

A task that completes when the journal is updated.

MarkUploadedAsync(string, FeatureEditResponse, CancellationToken)

Records a successful provider edit and its response, including any assigned feature identifiers.

Task MarkUploadedAsync(string operationId, FeatureEditResponse response, CancellationToken cancellationToken = default)

Parameters

operationId string
response FeatureEditResponse
cancellationToken CancellationToken

Returns

Task