public static final class PollerOptions.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
PollerOptions |
build() |
PollerOptions.Builder |
setMaximumPollRateIntervalMilliseconds(int maximumPollRateIntervalMilliseconds)
Defines interval for measuring poll rate.
|
PollerOptions.Builder |
setMaximumPollRatePerSecond(double maximumPollRatePerSecond)
Maximum rate of polling.
|
PollerOptions.Builder |
setPollBackoffCoefficient(double pollBackoffCoefficient)
Coefficient to use when calculating exponential delay in case of failures
|
PollerOptions.Builder |
setPollBackoffInitialInterval(java.time.Duration pollBackoffInitialInterval)
Initial delay in case of failure.
|
PollerOptions.Builder |
setPollBackoffMaximumInterval(java.time.Duration pollBackoffMaximumInterval)
Maximum interval between polls in case of failures.
|
PollerOptions.Builder |
setPollThreadCount(int pollThreadCount)
Number of parallel polling threads.
|
PollerOptions.Builder |
setPollThreadNamePrefix(java.lang.String pollThreadNamePrefix)
Prefix to use when naming poller threads.
|
PollerOptions.Builder |
setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
Called to report unexpected exceptions in the poller threads.
|
public PollerOptions.Builder setMaximumPollRateIntervalMilliseconds(int maximumPollRateIntervalMilliseconds)
public PollerOptions.Builder setMaximumPollRatePerSecond(double maximumPollRatePerSecond)
setMaximumPollRateIntervalMilliseconds(int)
.public PollerOptions.Builder setPollBackoffCoefficient(double pollBackoffCoefficient)
public PollerOptions.Builder setPollBackoffInitialInterval(java.time.Duration pollBackoffInitialInterval)
public PollerOptions.Builder setPollBackoffMaximumInterval(java.time.Duration pollBackoffMaximumInterval)
public PollerOptions.Builder setPollThreadCount(int pollThreadCount)
public PollerOptions.Builder setUncaughtExceptionHandler(java.lang.Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
public PollerOptions.Builder setPollThreadNamePrefix(java.lang.String pollThreadNamePrefix)
public PollerOptions build()