Class PollerOptions
java.lang.Object
io.temporal.internal.worker.PollerOptions
Options for component that polls Temporal task queues for tasks.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublestatic PollerOptionsintdoublebooleanbooleanstatic PollerOptionsmaybeEnrollInPollerAutoscaling(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 defaultPollerBehaviorAutoscalingbehavior.static PollerOptions.Builderstatic PollerOptions.BuildernewBuilder(PollerOptions options) toString()
-
Field Details
-
UNHANDLED_COMMAND_EXCEPTION_MESSAGE
- See Also:
-
-
Method Details
-
newBuilder
-
newBuilder
-
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 defaultPollerBehaviorAutoscalingbehavior. 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
-
getBackoffCongestionInitialInterval
-
getBackoffMaximumInterval
-
getBackoffMaximumJitterCoefficient
public double getBackoffMaximumJitterCoefficient() -
getPollerBehavior
-
getUncaughtExceptionHandler
-
getPollThreadNamePrefix
-
isUsingVirtualThreads
public boolean isUsingVirtualThreads() -
getPollerTaskExecutorOverride
-
isAutoscalingAutoEnrollEligible
public boolean isAutoscalingAutoEnrollEligible() -
toString
-