|
Action Engine
|
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. | |
|
explicit |
Constructs a ChunkStoreWriter for the given ChunkStore, setting n_chunks_to_buffer if provided.
| chunk_store | The ChunkStore to write to. Must not be null. |
| n_chunks_to_buffer | The number of chunks to buffer in memory before writing them to the store. If -1, the buffer will be unbounded. |