UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DownloadConnectionCount.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
7
9
10namespace BuildPatchServices
11{
12 class IDownloadServiceStatistics;
13 /*
14 * An interface for scaling the number of simultaneous download connections
15 */
17 {
18 public:
19 /*
20 * Get the number of simultaneous download connections
21 * @param NumProcessing -- the current number of downloads in-flight
22 * @param CurrentHealth -- percentage of downloads that have failed since last call to this function, in terms of "health"
23 * @return number of connections that should be approximately optimal.
24 */
27 };
28
29
31 {
32 // Maximum number of simultaneous connections to be used.
34 // Minimum number of connections to be used.
36 // How many consecutive decreases in speed must be encountered before the count is changed.
38 // Minimum number of samples needed that constitutes a useful average speed.
40 // How many consecutive increases in speed must be encountered before the count is changed.
42 // Percentage of highest seen speed that must be exceeded before the count is changed
44 // Percentage of highest seen speed that must be fallen short of before the count is changed
46 // Enable or disable download scaling.
48 // The number of connections to allow when dynamic scaling is disabled
50 // How many consecutive poor download health status checks must be encountered before the count is changed.
52
80 };
81
83 {
84 public:
85 /*
86 * Create a download connection count calculator.
87 * @param Configuration -- configuration values.
88 * @param InDownloadStatistics -- A download statistics object. Can be null. If null, the object will use an implementation that does not take into account download speed changes.
89 */
91 };
92}
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EBuildPatchDownloadHealth
Definition IBuildInstaller.h:88
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition DownloadConnectionCount.h:83
Definition DownloadConnectionCount.h:17
virtual ~IDownloadConnectionCount()
Definition DownloadConnectionCount.h:26
virtual uint32 GetAdjustedCount(uint32 NumProcessing, EBuildPatchDownloadHealth CurrentHealth)=0
Definition DownloadServiceStatistics.h:21
Definition BuildPatchFileConstructor.h:28
@ false
Definition radaudio_common.h:23
Definition DownloadConnectionCount.h:31
uint32 PositiveHysteresis
Definition DownloadConnectionCount.h:41
uint32 NegativeHysteresis
Definition DownloadConnectionCount.h:37
uint32 MinLimit
Definition DownloadConnectionCount.h:35
uint32 FallbackCount
Definition DownloadConnectionCount.h:49
double LowBandwidthFactor
Definition DownloadConnectionCount.h:45
double HighBandwidthFactor
Definition DownloadConnectionCount.h:43
uint32 MaxLimit
Definition DownloadConnectionCount.h:33
FDownloadConnectionCountConfig()
Definition DownloadConnectionCount.h:53
uint32 AverageSpeedMinCount
Definition DownloadConnectionCount.h:39
uint32 HealthHysteresis
Definition DownloadConnectionCount.h:51
bool bDisableConnectionScaling
Definition DownloadConnectionCount.h:47
FDownloadConnectionCountConfig(const FDownloadConnectionCountConfig &CopyThis)
Definition DownloadConnectionCount.h:66