Skip to content
scalive
Menu
ConnectingLiveReconnectingOffline
GitHub
c

CompletedUpload

class CompletedUpload[Result]

A completed destination result supplied to a consume callback.

The framework still owns result while the callback is running. Returning Consume removes the entry without calling destination cleanup and transfers responsibility for the result to application code. Returning Postpone leaves the entry and result framework-owned, so a later cancellation, disallow, component removal, or socket shutdown may discard it. If a consume callback fails, that entry remains tracked; batch consumption is sequential rather than transactional, so entries consumed by earlier callbacks remain consumed if a later callback fails.

Type parameters

Result

the destination result type

Parameters

ref

the completed entry's transient reference

client

the untrusted metadata originally reported by the browser

result

the completed hosted result or server-side external result

metadata

writer metadata or external client configuration; empty when none was supplied

Exported from scalive.upload.CompletedUpload. View source (scalive/api/src/scalive/upload/LiveUpload.scala:391-395)

Values4

client

val client: UploadClientMetadata

The untrusted metadata originally reported by the browser.

Exported from scalive.upload.CompletedUpload.client. View source (scalive/api/src/scalive/upload/LiveUpload.scala:393-393)

metadata

val metadata: zio.json.ast.Json.Obj

Writer metadata or external client configuration; empty when none was supplied.

Exported from scalive.upload.CompletedUpload.metadata. View source (scalive/api/src/scalive/upload/LiveUpload.scala:395-395)

ref

val ref: UploadEntryRef

The completed entry's transient reference.

Exported from scalive.upload.CompletedUpload.ref. View source (scalive/api/src/scalive/upload/LiveUpload.scala:392-392)

result

val result: Result

The completed hosted result or server-side external result.

Exported from scalive.upload.CompletedUpload.result. View source (scalive/api/src/scalive/upload/LiveUpload.scala:394-394)