Optional writer knobs. More...
#include <StormByte/buffer/io/parameters.hxx>

Public Member Functions | |
| 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. | |
Optional writer knobs.
A missing field keeps the current default.
Nested Parameters on BufferedWriter and its children inherit this type. Not a DLL type.
|
defaultnoexcept |
No knobs.
Every field is absent.
|
inline |
Engage the listed knobs.
Unknown types do not compile.
| Knobs | WriteChunk, BackPressure, MaxMemory and/or MaxWait. |
| knobs | Values to store. |
|
inlinenoexcept |
Backpressure when the caller set it.
|
inlinenoexcept |
Dirty-page budget when the caller set it.
|
inlinenoexcept |
Wait cap when the caller set it.
|
inlinenoexcept |
Chunk size when the caller set it.