A11 (C++ runtime)
Native C++ implementation of the A11 action and streaming runtime
Loading...
Searching...
No Matches
a11::stores::ChunkStoreWriterOptions Struct Reference

Tunables controlling how a ChunkStoreWriter batches and buffers chunks. More...

#include <cpp/a11/stores/chunk_store_writer.h>

Public Member Functions

absl::Status Validate () const
 Validate that the options are internally consistent.
 

Public Attributes

std::uint32_t offset = 0
 Sequence number at which writing begins.
 
std::uint64_t max_chunks_to_write_at_once = 8
 Maximum number of chunks flushed to the store per batch.
 
std::optional< std::uint64_t > num_chunks_to_buffer
 Optional bound on the in-flight write buffer size.
 
bool sticky_mimetype = false
 Whether repeated contiguous chunk mimetypes are omitted when writing.
 

Detailed Description

Tunables controlling how a ChunkStoreWriter batches and buffers chunks.

Configures the starting offset, how many chunks are flushed to the store per batch, and an optional bound on the in-flight write buffer that governs backpressure. Sticky mimetypes can omit repeated MIME metadata while keeping explicit sequence discontinuities self-describing.

Member Function Documentation

◆ Validate()

absl::Status a11::stores::ChunkStoreWriterOptions::Validate ( ) const

Validate that the options are internally consistent.

Returns
OK if the options are valid, otherwise an error status.

Member Data Documentation

◆ max_chunks_to_write_at_once

std::uint64_t a11::stores::ChunkStoreWriterOptions::max_chunks_to_write_at_once = 8

Maximum number of chunks flushed to the store per batch.

◆ num_chunks_to_buffer

std::optional<std::uint64_t> a11::stores::ChunkStoreWriterOptions::num_chunks_to_buffer

Optional bound on the in-flight write buffer size.

◆ offset

std::uint32_t a11::stores::ChunkStoreWriterOptions::offset = 0

Sequence number at which writing begins.

◆ sticky_mimetype

bool a11::stores::ChunkStoreWriterOptions::sticky_mimetype = false

Whether repeated contiguous chunk mimetypes are omitted when writing.


The documentation for this struct was generated from the following files: