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
Resultthe destination result type
Parameters
refthe completed entry's transient reference
clientthe untrusted metadata originally reported by the browser
resultthe completed hosted result or server-side external result
metadatawriter 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: UploadClientMetadataThe 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.ObjWriter 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: UploadEntryRefThe 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: ResultThe 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)