Class AutoScalingEventExecutorChooserFactory.AutoScalingEventExecutorChooser.UtilizationMonitor
java.lang.Object
io.netty.util.concurrent.AutoScalingEventExecutorChooserFactory.AutoScalingEventExecutorChooser.UtilizationMonitor
- All Implemented Interfaces:
java.lang.Runnable
private final class AutoScalingEventExecutorChooserFactory.AutoScalingEventExecutorChooser.UtilizationMonitor
extends java.lang.Object
implements java.lang.Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final java.util.List<SingleThreadEventExecutor> private final java.util.List<SingleThreadEventExecutor> private long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidAtomically updates the state by creating a new snapshot with the current set of active executors.voidrun()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
consistentlyIdleChildren
-
consistentlyBusyChildren
-
lastCheckTimeNanos
private long lastCheckTimeNanos
-
-
Constructor Details
-
UtilizationMonitor
private UtilizationMonitor()
-
-
Method Details
-
run
public void run()- Specified by:
runin interfacejava.lang.Runnable
-
rebuildActiveExecutors
private void rebuildActiveExecutors()Atomically updates the state by creating a new snapshot with the current set of active executors.
-