AutoScalingEventExecutorChooserFactory() — netty Function Reference
Architecture documentation for the AutoScalingEventExecutorChooserFactory() function in AutoScalingEventExecutorChooserFactory.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ee0e0ad8_8fca_c938_8fe4_3d22090bfe7a["AutoScalingEventExecutorChooserFactory()"] 89513ff1_7570_ea60_1629_69d76191e92a["AutoScalingEventExecutorChooserFactory"] ee0e0ad8_8fca_c938_8fe4_3d22090bfe7a -->|defined in| 89513ff1_7570_ea60_1629_69d76191e92a style ee0e0ad8_8fca_c938_8fe4_3d22090bfe7a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactory.java lines 107–130
public AutoScalingEventExecutorChooserFactory(int minThreads, int maxThreads, long utilizationWindow,
TimeUnit windowUnit, double scaleDownThreshold,
double scaleUpThreshold, int maxRampUpStep, int maxRampDownStep,
int scalingPatienceCycles) {
minChildren = ObjectUtil.checkPositiveOrZero(minThreads, "minThreads");
maxChildren = ObjectUtil.checkPositive(maxThreads, "maxThreads");
if (minThreads > maxThreads) {
throw new IllegalArgumentException(String.format(
"minThreads: %d must not be greater than maxThreads: %d", minThreads, maxThreads));
}
utilizationCheckPeriodNanos = ObjectUtil.checkNotNull(windowUnit, "windowUnit")
.toNanos(ObjectUtil.checkPositive(utilizationWindow,
"utilizationWindow"));
this.scaleDownThreshold = ObjectUtil.checkInRange(scaleDownThreshold, 0.0, 1.0, "scaleDownThreshold");
this.scaleUpThreshold = ObjectUtil.checkInRange(scaleUpThreshold, 0.0, 1.0, "scaleUpThreshold");
if (scaleDownThreshold >= scaleUpThreshold) {
throw new IllegalArgumentException(
"scaleDownThreshold must be less than scaleUpThreshold: " +
scaleDownThreshold + " >= " + scaleUpThreshold);
}
this.maxRampUpStep = ObjectUtil.checkPositive(maxRampUpStep, "maxRampUpStep");
this.maxRampDownStep = ObjectUtil.checkPositive(maxRampDownStep, "maxRampDownStep");
this.scalingPatienceCycles = ObjectUtil.checkPositiveOrZero(scalingPatienceCycles, "scalingPatienceCycles");
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does AutoScalingEventExecutorChooserFactory() do?
AutoScalingEventExecutorChooserFactory() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactory.java.
Where is AutoScalingEventExecutorChooserFactory() defined?
AutoScalingEventExecutorChooserFactory() is defined in common/src/main/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactory.java at line 107.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free