Package io.temporal.internal.worker
Class PollScaleReportHandle<T extends ScalingTask>
- java.lang.Object
-
- io.temporal.internal.worker.PollScaleReportHandle<T>
-
- All Implemented Interfaces:
java.lang.Runnable
@ThreadSafe public class PollScaleReportHandle<T extends ScalingTask> extends java.lang.Object implements java.lang.RunnablePollScaleReportHandle 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 voidreport(T task, java.lang.Throwable e)voidrun()
-
-
-
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:
runin interfacejava.lang.Runnable
-
-