Class PollerBehaviorSimpleMaximum

java.lang.Object
io.temporal.worker.tuning.PollerBehaviorSimpleMaximum
All Implemented Interfaces:
PollerBehavior

public class PollerBehaviorSimpleMaximum extends 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 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object