class Builder
Build a ChunkSender instance for a given device.
Calling setMemfaultCloud and setDeviceSerialNumber is required before calling build.
<init> |
Build a ChunkSender instance for a given device. Builder() |
build |
Create a ChunkSender instance using the configured values. fun build(): ChunkSender |
setChunkQueue |
Provide a custom ChunkQueue that is managed by the caller. fun setChunkQueue(chunkQueue: ChunkQueue): Builder |
setDeviceSerialNumber |
Provide the serial number of the device that produced the chunks. fun setDeviceSerialNumber(deviceSerial: String): Builder |
setMaxChunksPerRequest |
fun setMaxChunksPerRequest(maxChunksPerRequest: Int): Builder |
setMemfaultCloud |
Provide an active instance of the API to the ChunkSender. fun setMemfaultCloud(memfaultCloud: MemfaultCloud): Builder |