State

sealed interface State

Status of the manager.

The manager is in Idle state when there are no chunks to upload. It switches to InProgress when uploading chunks and to Suspended when an error occurs and the upload is suspended for a certain delay.

Inheritors

Types

Link copied to clipboard
data object Idle : ChunkManager.State

The chunks are not uploaded at the moment.

Link copied to clipboard

The chunks are currently being uploaded.

Link copied to clipboard
data class Suspended(val delayInSeconds: Long) : ChunkManager.State

Uploading chunks has been suspended.