HT2::AdaptiveFlowControl
Inherits Reference < Object
Adaptive flow control manager that dynamically adjusts window update strategies based on data consumption patterns and network conditions
Constructors
new(initial_window_size : Int64, strategy : Strategy = Strategy::MODERATE)
SourceInstance methods
adapt_strategy(rtt_ms : Float64 | Nil = nil, loss_rate : Float64 | Nil = nil) : Nil
Update flow control strategy based on network conditions
calculate_increment(current_window : Int64, consumed : Int64) : Int32
Calculate optimal window increment based on consumption patterns
current_threshold
Sourcecurrent_threshold=(current_threshold : Float64)
Sourceinitial_window_size
Sourceinitial_window_size=(initial_window_size : Int64)
Sourcemax_update_threshold
Sourcemax_update_threshold=(max_update_threshold : Float64)
Sourcemetrics
Sourcemetrics=(metrics : FlowMetrics)
Sourcemin_update_threshold
Sourcemin_update_threshold=(min_update_threshold : Float64)
Sourceneeds_update?(current_window : Int64, available_window : Int64) : Bool
Check if window update is needed based on current window size
strategy
Source