Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
kcenon::logger::async::batch_processor::config Struct Reference

Configuration for batch processor. More...

#include <batch_processor.h>

Collaboration diagram for kcenon::logger::async::batch_processor::config:
Collaboration graph

Public Member Functions

 config () noexcept
 

Public Attributes

size_t initial_batch_size {100}
 Initial batch size.
 
size_t min_batch_size {10}
 Minimum batch size.
 
size_t max_batch_size {1000}
 Maximum batch size.
 
std::chrono::milliseconds max_wait_time {1000}
 Maximum wait time.
 
std::chrono::milliseconds min_wait_time {10}
 Minimum wait time.
 
bool enable_dynamic_sizing {true}
 Enable dynamic batch sizing.
 
bool enable_back_pressure {true}
 Enable back-pressure handling.
 
double size_increase_factor {1.5}
 Factor for increasing batch size.
 
double size_decrease_factor {0.8}
 Factor for decreasing batch size.
 
size_t back_pressure_threshold {5000}
 Queue size threshold for back-pressure.
 
std::chrono::microseconds back_pressure_delay {100}
 Delay when under back-pressure.
 

Detailed Description

Configuration for batch processor.

Definition at line 41 of file batch_processor.h.

Constructor & Destructor Documentation

◆ config()

kcenon::logger::async::batch_processor::config::config ( )
inlinenoexcept

Definition at line 58 of file batch_processor.h.

58{}

Member Data Documentation

◆ back_pressure_delay

std::chrono::microseconds kcenon::logger::async::batch_processor::config::back_pressure_delay {100}

Delay when under back-pressure.

Definition at line 56 of file batch_processor.h.

56{100};

Referenced by kcenon::logger::async::batch_processor::handle_back_pressure().

◆ back_pressure_threshold

size_t kcenon::logger::async::batch_processor::config::back_pressure_threshold {5000}

Queue size threshold for back-pressure.

Definition at line 55 of file batch_processor.h.

55{5000};

Referenced by kcenon::logger::async::batch_processor::handle_back_pressure().

◆ enable_back_pressure

bool kcenon::logger::async::batch_processor::config::enable_back_pressure {true}

◆ enable_dynamic_sizing

bool kcenon::logger::async::batch_processor::config::enable_dynamic_sizing {true}

◆ initial_batch_size

size_t kcenon::logger::async::batch_processor::config::initial_batch_size {100}

◆ max_batch_size

size_t kcenon::logger::async::batch_processor::config::max_batch_size {1000}

◆ max_wait_time

std::chrono::milliseconds kcenon::logger::async::batch_processor::config::max_wait_time {1000}

Maximum wait time.

Definition at line 46 of file batch_processor.h.

46{1000};

Referenced by kcenon::logger::async::high_performance_async_writer::config::config().

◆ min_batch_size

size_t kcenon::logger::async::batch_processor::config::min_batch_size {10}

◆ min_wait_time

std::chrono::milliseconds kcenon::logger::async::batch_processor::config::min_wait_time {10}

Minimum wait time.

Definition at line 47 of file batch_processor.h.

47{10};

◆ size_decrease_factor

double kcenon::logger::async::batch_processor::config::size_decrease_factor {0.8}

Factor for decreasing batch size.

Definition at line 53 of file batch_processor.h.

53{0.8};

Referenced by kcenon::logger::async::batch_processor::adjust_batch_size().

◆ size_increase_factor

double kcenon::logger::async::batch_processor::config::size_increase_factor {1.5}

Factor for increasing batch size.

Definition at line 52 of file batch_processor.h.

52{1.5};

Referenced by kcenon::logger::async::batch_processor::adjust_batch_size().


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