44#include <StormByte/type_traits/safe.hxx>
48#include <StormByte/safe/pointers.hxx>
49#include <StormByte/safe/string.hxx>
50#include <StormByte/system/device.hxx>
140 template<
typename... Knobs>
250 parameters.
MaxWait().value_or(0),
Private state of StormByte::Buffer::IO::BufferedLocationWriter.
Location-writer knobs.
Definition buffered_location_writer.hxx:128
Parameters()=default
Construct an empty Safe-owned parameter bag.
~Parameters() noexcept=default
Release knobs through provider callbacks.
Parameters(Knobs... knobs)
Store writer knobs in Safe-owned optional values.
Definition buffered_location_writer.hxx:141
Parameters(Parameters &&other) noexcept=default
Transfer Safe-owned knobs.
Parameters(const Parameters &other)=default
Copy Safe-owned knobs; may allocate and throw.
BufferedLocationWriter(const BufferedLocationWriter &)=delete
Copy constructor is deleted.
StormByte::Safe::Shared< StormByte::System::Device > Device() const
Measurement of this location.
virtual StormByte::ByteSize OriginSize() const noexcept=0
Length the leaf can answer.
Result OriginSeek(StormByte::ByteSize absolute) override=0
Seek the origin to an absolute offset.
bool IsSized() const noexcept
This location has a length.
StormByte::ByteSize Size() const noexcept final
Length from the leaf.
virtual StormByte::Safe::Shared< StormByte::System::Device > OriginDevice() const =0
Leaf measurement.
void Setup() final
Apply the device write window when the constructor asked for a probe.
virtual bool OriginDeviceUsable(const StormByte::Safe::Shared< StormByte::System::Device > &device) const noexcept
Whether Setup may read windows from device.
bool IsSeekable() const noexcept
This location can seek.
Writer knobs.
Definition buffered_writer.hxx:246
StormByte::ByteSize WriteThreshold() const noexcept
Page drain high watermark.
friend class StormByte::Buffer::Backend::IO::BufferedWriter
Definition buffered_writer.hxx:235
StormByte::ByteSize MaxMemory() const noexcept
Byte budget for dirty pages that are not yet on the origin.
std::size_t BackPressure() const noexcept
Configured dirty cap in WriteChunk units.
StormByte::ByteSize WriteChunk() const noexcept
Configured ring unit and drain trigger, not a transfer maximum.
std::chrono::milliseconds MaxWait() const noexcept
Wait cap for OriginPush.
enum Location Location() const noexcept
Where Path points.
StormByte::ByteSize WriteTransfer() const noexcept
Maximum origin request in every mode.
STORMBYTE_DECLARE_MAYBE_SAFE(class StormByte::System::Device::Access)
PIMPL coordinators for the public IO types.
PIMPL coordinators for public Buffer types that are not IO.
Buffered binary sources and sinks.
Buffer module of the StormByte suite.
Root namespace of the StormByte C++ suite.
Knobs after Parameters has been unpacked.
Definition buffered_location_writer.hxx:238
WriterConfiguration m_configuration
Complete resolved writer policy.
Definition buffered_location_writer.hxx:291
bool m_probe
Probe device defaults during Setup.
Definition buffered_location_writer.hxx:292
Unpacked(const Unpacked &other) noexcept=default
Copy resolved knobs.
~Unpacked() noexcept=default
Destroy non-owning knobs.
STORMBYTE_FORCE_INLINE Unpacked(const Parameters ¶meters)
Unpack a bag in the caller.
Definition buffered_location_writer.hxx:246
Unpacked(Unpacked &&other) noexcept=default
Move resolved knobs.
Per-call status plus how many bytes this call transferred.
Definition typedefs.hxx:214
Complete non-owning writer policy; Configure applies all fields together.
Definition parameters.hxx:244
#define STORMBYTE_BUFFER_PUBLIC
Definition visibility.h:54