Action Engine
Loading...
Searching...
No Matches
act::ChunkStoreWriter Class Referenceabstract

Detailed Description

A writer for the ChunkStore that allows writing chunks to the store in a buffered manner.

This class provides methods to write chunks to the store through a non-blocking interface. It buffers chunks in memory and writes them to the store in a separate fiber, allowing for efficient writing without blocking the calling thread.

#include <chunk_store_writer.h>

Public Member Functions

 ChunkStoreWriter (ChunkStore *absl_nonnull chunk_store, int n_chunks_to_buffer=-1)
 Constructs a ChunkStoreWriter for the given ChunkStore, setting n_chunks_to_buffer if provided.
 

Constructor & Destructor Documentation

◆ ChunkStoreWriter()

act::ChunkStoreWriter::ChunkStoreWriter ( ChunkStore *absl_nonnull chunk_store,
int n_chunks_to_buffer = -1 )
explicit

Constructs a ChunkStoreWriter for the given ChunkStore, setting n_chunks_to_buffer if provided.

Parameters
chunk_storeThe ChunkStore to write to. Must not be null.
n_chunks_to_bufferThe number of chunks to buffer in memory before writing them to the store. If -1, the buffer will be unbounded.

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