ChunkQueue

interface ChunkQueue

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

Functions

Link copied to clipboard
abstract fun addChunks(chunks: List<ByteArray>): Boolean

Enqueue the chunks; return false if not successful.

Link copied to clipboard
abstract fun drop(count: Int)

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

Link copied to clipboard
abstract fun peek(count: Int): List<ByteArray>

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