Class AutoScalingEventExecutorChooserFactory.AutoScalingUtilizationMetric

  • Enclosing class:
    AutoScalingEventExecutorChooserFactory

    public static final class AutoScalingEventExecutorChooserFactory.AutoScalingUtilizationMetric
    extends java.lang.Object
    A container for the utilization metric of a single EventExecutor. This object is intended to be created once and have its utilization field updated periodically.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      EventExecutor executor()
      Returns the EventExecutor this metric belongs too.
      double utilization()
      Returns the most recently calculated utilization for the associated executor.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • utilization

        public double utilization()
        Returns the most recently calculated utilization for the associated executor.
        Returns:
        a value from 0.0 to 1.0.