Class PollerOptions

java.lang.Object
io.temporal.internal.worker.PollerOptions

public final class PollerOptions extends Object
Options for component that polls Temporal task queues for tasks.
  • Field Details

  • Method Details

    • newBuilder

      public static PollerOptions.Builder newBuilder()
    • newBuilder

      public static PollerOptions.Builder newBuilder(PollerOptions options)
    • getDefaultInstance

      public static PollerOptions getDefaultInstance()
    • maybeEnrollInPollerAutoscaling

      public static PollerOptions maybeEnrollInPollerAutoscaling(PollerOptions options, NamespaceCapabilities namespaceCapabilities)
      If the given options are eligible for poller-autoscaling auto-enrollment (the user left this poller type at its default) and the namespace advertises the auto-enroll capability, returns a copy of the options with a default PollerBehaviorAutoscaling behavior. Otherwise returns the options unchanged.

      Must only be called before the worker's poller is created (i.e. at worker start), so the resolved behavior is picked up when the poller is built.

    • getMaximumPollRateIntervalMilliseconds

      public int getMaximumPollRateIntervalMilliseconds()
    • getMaximumPollRatePerSecond

      public double getMaximumPollRatePerSecond()
    • getBackoffCoefficient

      public double getBackoffCoefficient()
    • getBackoffInitialInterval

      public Duration getBackoffInitialInterval()
    • getBackoffCongestionInitialInterval

      public Duration getBackoffCongestionInitialInterval()
    • getBackoffMaximumInterval

      public Duration getBackoffMaximumInterval()
    • getBackoffMaximumJitterCoefficient

      public double getBackoffMaximumJitterCoefficient()
    • getPollerBehavior

      public PollerBehavior getPollerBehavior()
    • getUncaughtExceptionHandler

      public Thread.UncaughtExceptionHandler getUncaughtExceptionHandler()
    • getPollThreadNamePrefix

      public String getPollThreadNamePrefix()
    • isUsingVirtualThreads

      public boolean isUsingVirtualThreads()
    • getPollerTaskExecutorOverride

      public ExecutorService getPollerTaskExecutorOverride()
    • isAutoscalingAutoEnrollEligible

      public boolean isAutoscalingAutoEnrollEligible()
    • toString

      public String toString()
      Overrides:
      toString in class Object