Skip to content

TransferCheckpointStore

Defined in: src/transfers/TransferCheckpointStore.ts:140

Persistence contract for transfer checkpoints.

Implementations may be synchronous or asynchronous. clear is invoked when a transfer completes successfully or a checkpoint is invalidated; it must tolerate missing entries.

clear(key: TransferCheckpointKey): void | Promise<void>;

Defined in: src/transfers/TransferCheckpointStore.ts:148

Removes the checkpoint for a transfer identity.

ParameterType
keyTransferCheckpointKey

void | Promise<void>


load(key: TransferCheckpointKey):
| TransferCheckpointRecord
| Promise<
| TransferCheckpointRecord
| undefined>
| undefined;

Defined in: src/transfers/TransferCheckpointStore.ts:142

Loads the checkpoint for a transfer identity, or undefined when absent.

ParameterType
keyTransferCheckpointKey

| TransferCheckpointRecord | Promise< | TransferCheckpointRecord | undefined> | undefined


save(key: TransferCheckpointKey, record: TransferCheckpointRecord): void | Promise<void>;

Defined in: src/transfers/TransferCheckpointStore.ts:146

Persists the checkpoint for a transfer identity.

ParameterType
keyTransferCheckpointKey
recordTransferCheckpointRecord

void | Promise<void>