Class PollScaleReportHandle<T extends ScalingTask>

  • All Implemented Interfaces:
    java.lang.Runnable

    @ThreadSafe
    public class PollScaleReportHandle<T extends ScalingTask>
    extends java.lang.Object
    implements java.lang.Runnable
    PollScaleReportHandle is responsible for managing the scaling of pollers based on the scaling feedback attached to the task by the server.
    • Constructor Summary

      Constructors 
      Constructor Description
      PollScaleReportHandle​(int minPollerCount, int maxPollerCount, int initialPollerCount, Functions.Proc1<java.lang.Integer> scaleCallback)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void report​(T task, java.lang.Throwable e)  
      void run()  
      • Methods inherited from class java.lang.Object

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

      • PollScaleReportHandle

        public PollScaleReportHandle​(int minPollerCount,
                                     int maxPollerCount,
                                     int initialPollerCount,
                                     Functions.Proc1<java.lang.Integer> scaleCallback)
    • Method Detail

      • report

        public void report​(T task,
                           java.lang.Throwable e)
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable