sdk / com.memfault.cloud.sdk / ChunkQueue

ChunkQueue

interface ChunkQueue

An API that allows a ChunkSender to queue chunks into batched requests.

Functions

addChunks

Enqueue the chunks; return false if not successful.

abstract fun addChunks(chunks: List<ByteArray>): Boolean

drop

Remove at most the first count items from head of the queue.

abstract fun drop(count: Int): Unit

peek

Return a list with at most the first count items from the head of the queue.

abstract fun peek(count: Int): List<ByteArray>