Package com.uber.cadence.internal.worker
Class PollerOptions
- java.lang.Object
-
- com.uber.cadence.internal.worker.PollerOptions
-
public final class PollerOptions extends java.lang.Object
Options for component that polls Cadence task lists for tasks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PollerOptions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PollerOptions
getDefaultInstance()
int
getMaximumPollRateIntervalMilliseconds()
double
getMaximumPollRatePerSecond()
double
getPollBackoffCoefficient()
java.time.Duration
getPollBackoffInitialInterval()
java.time.Duration
getPollBackoffMaximumInterval()
PollerAutoScalerOptions
getPollerAutoScalerOptions()
java.lang.Boolean
getPollOnlyIfExecutorHasCapacity()
int
getPollThreadCount()
java.lang.String
getPollThreadNamePrefix()
java.lang.Thread.UncaughtExceptionHandler
getUncaughtExceptionHandler()
static PollerOptions.Builder
newBuilder()
static PollerOptions.Builder
newBuilder(PollerOptions options)
java.lang.String
toString()
-
-
-
Method Detail
-
newBuilder
public static PollerOptions.Builder newBuilder()
-
newBuilder
public static PollerOptions.Builder newBuilder(PollerOptions options)
-
getDefaultInstance
public static PollerOptions getDefaultInstance()
-
getMaximumPollRateIntervalMilliseconds
public int getMaximumPollRateIntervalMilliseconds()
-
getMaximumPollRatePerSecond
public double getMaximumPollRatePerSecond()
-
getPollBackoffCoefficient
public double getPollBackoffCoefficient()
-
getPollBackoffInitialInterval
public java.time.Duration getPollBackoffInitialInterval()
-
getPollBackoffMaximumInterval
public java.time.Duration getPollBackoffMaximumInterval()
-
getPollThreadCount
public int getPollThreadCount()
-
getUncaughtExceptionHandler
public java.lang.Thread.UncaughtExceptionHandler getUncaughtExceptionHandler()
-
getPollThreadNamePrefix
public java.lang.String getPollThreadNamePrefix()
-
getPollOnlyIfExecutorHasCapacity
public java.lang.Boolean getPollOnlyIfExecutorHasCapacity()
-
getPollerAutoScalerOptions
public PollerAutoScalerOptions getPollerAutoScalerOptions()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-