pub struct WriterConfig {
pub heartbeat_period: Duration,
pub nack_response_delay: Duration,
pub max_message_size: usize,
pub fragmentation: Fragmentation,
pub acknowledgment_batch: u64,
pub acknowledgment_delay: Duration,
pub max_repair_size: usize,
pub repair_interval: Duration,
}Expand description
Timing of a ReliableWriter (8.4.7.1). All of them can be tuned, as
8.4.2.1 requires.
Fields§
§heartbeat_period: DurationHow often to send a HEARTBEAT to readers that have not acknowledged everything.
nack_response_delay: DurationHow long to wait after an ACKNACK before sending what it asks for.
max_message_size: usizeThe largest message to build, in octets. A change too large for it still goes alone in a message, unless it has to be fragmented.
fragmentation: FragmentationWhen and how to send a change as DATA_FRAG.
acknowledgment_batch: u64How many changes a reader may have not acknowledged before the HEARTBEAT sent with the next change asks it to answer (final flag not set). 1, the default, asks with every change; more saves an ACKNACK for each change, as for a stream of samples.
acknowledgment_delay: DurationWith acknowledgment_batch above 1: how long after the last
change sent a HEARTBEAT asks the readers that have not
acknowledged it to answer.
max_repair_size: usizeThe most payload, in octets, sent again at once (at least one
change or run of fragments); the rest of what the readers asked
for follows repair_interval later, and so on. A reader whose
socket buffer is smaller than a burst of repairs otherwise loses
the same part of each burst and never catches up.
repair_interval: DurationHow long after max_repair_size octets of repairs to send more.