TransferCheckpointHandle
Defined in: src/transfers/TransferCheckpointStore.ts:163
Live handle a provider uses to checkpoint part-aware progress during a write.
The transfer executor constructs the handle (binding the store, key, and source fingerprint) and attaches it to ProviderTransferWriteRequest.checkpoint. Providers that upload in discrete parts call save as the contiguous completed-part prefix advances and read state to pick up prior progress. Clearing on success is the executor’s responsibility - providers only ever record progress.
Properties
Section titled “Properties”| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
state? | readonly | TransferCheckpointState | Validated state loaded for this transfer, when prior progress exists. undefined means start fresh (no checkpoint, or it was invalidated). | src/transfers/TransferCheckpointStore.ts:168 |
Methods
Section titled “Methods”clear()
Section titled “clear()”clear(): Promise<void>;Defined in: src/transfers/TransferCheckpointStore.ts:172
Removes the stored checkpoint (for example when the provider restarts the upload).
Returns
Section titled “Returns”Promise<void>
save()
Section titled “save()”save(state: TransferCheckpointState): Promise<void>;Defined in: src/transfers/TransferCheckpointStore.ts:170
Persists new progress state for this transfer.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
state | TransferCheckpointState |
Returns
Section titled “Returns”Promise<void>