Package io.temporal.worker.tuning
Class PollerBehaviorSimpleMaximum
- java.lang.Object
-
- io.temporal.worker.tuning.PollerBehaviorSimpleMaximum
-
- All Implemented Interfaces:
PollerBehavior
public class PollerBehaviorSimpleMaximum extends java.lang.Object implements 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
Constructors Constructor Description PollerBehaviorSimpleMaximum(int maxConcurrentTaskPollers)Creates a new PollerBehaviorSimpleMaximum with the specified maximum number of concurrent task pollers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetMaxConcurrentTaskPollers()Gets the maximum number of concurrent task pollers.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getMaxConcurrentTaskPollers
public int getMaxConcurrentTaskPollers()
Gets the maximum number of concurrent task pollers.- Returns:
- Maximum number of concurrent task pollers.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-