Class PollerBehaviorSimpleMaximum
java.lang.Object
io.temporal.worker.tuning.PollerBehaviorSimpleMaximum
- All Implemented Interfaces:
PollerBehavior
A poller behavior that will attempt to poll as long as a slot is available, up to the provided
maximum. Cannot be less than two for workflow tasks, or one for other tasks.
-
Constructor Summary
ConstructorsConstructorDescriptionPollerBehaviorSimpleMaximum(int maxConcurrentTaskPollers) Creates a new PollerBehaviorSimpleMaximum with the specified maximum number of concurrent task pollers. -
Method Summary
-
Constructor Details
-
PollerBehaviorSimpleMaximum
public PollerBehaviorSimpleMaximum(int maxConcurrentTaskPollers) Creates a new PollerBehaviorSimpleMaximum with the specified maximum number of concurrent task pollers.- Parameters:
maxConcurrentTaskPollers- Maximum number of concurrent task pollers.
-
-
Method Details
-
getMaxConcurrentTaskPollers
public int getMaxConcurrentTaskPollers()Gets the maximum number of concurrent task pollers.- Returns:
- Maximum number of concurrent task pollers.
-
equals
-
hashCode
-
toString
-