StormByte-Buffer 2.0.0
C++26 buffer module of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Buffer::IO::BufferedWriter::Parameters Class Reference

Writer knobs. More...

#include <StormByte/buffer/io/buffered_writer.hxx>

Inheritance diagram for StormByte::Buffer::IO::BufferedWriter::Parameters:
Collaboration diagram for StormByte::Buffer::IO::BufferedWriter::Parameters:

Public Member Functions

STORMBYTE_FORCE_INLINE WriterParameters () noexcept=default
 No knobs.
 
template<typename... Knobs>
STORMBYTE_FORCE_INLINE WriterParameters (Knobs... knobs)
 Engage the listed knobs.
 
- Public Member Functions inherited from StormByte::Buffer::IO::WriterParameters
STORMBYTE_FORCE_INLINE WriterParameters () noexcept=default
 No knobs.
 
template<typename... Knobs>
STORMBYTE_FORCE_INLINE WriterParameters (Knobs... knobs)
 Engage the listed knobs.
 
STORMBYTE_FORCE_INLINE const std::optional< StormByte::ByteSize > & WriteChunk () const noexcept
 Chunk size when the caller set it.
 
STORMBYTE_FORCE_INLINE const std::optional< std::size_t > & BackPressure () const noexcept
 Backpressure when the caller set it.
 
STORMBYTE_FORCE_INLINE const std::optional< StormByte::ByteSize > & MaxMemory () const noexcept
 Dirty-page budget when the caller set it.
 
STORMBYTE_FORCE_INLINE const std::optional< std::chrono::milliseconds > & MaxWait () const noexcept
 Wait cap when the caller set it.
 

Detailed Description

Writer knobs.

A missing field keeps the base default (0 / 0 ms).

Header-only. The variadic list is applied in the caller (STORMBYTE_FORCE_INLINE). This module never instantiates Parameters.

Member Function Documentation

◆ WriterParameters() [1/2]

STORMBYTE_FORCE_INLINE StormByte::Buffer::IO::WriterParameters::WriterParameters ( )
defaultnoexcept

No knobs.

Every field is absent.

◆ WriterParameters() [2/2]

template<typename... Knobs>
STORMBYTE_FORCE_INLINE StormByte::Buffer::IO::WriterParameters::WriterParameters ( Knobs...  knobs)
inline

Engage the listed knobs.

Unknown types do not compile.

Template Parameters
KnobsWriteChunk, BackPressure, MaxMemory and/or MaxWait.
Parameters
knobsValues to store.

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