Class PollableOptions.ExponentialPollStrategy
java.lang.Object
com.broadleafcommerce.metadata.dsl.core.extension.PollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
com.broadleafcommerce.metadata.dsl.core.extension.PollableOptions.ExponentialPollStrategy
- All Implemented Interfaces:
Copyable<PollableOptions.ExponentialPollStrategy>
,Serializable
- Enclosing class:
- PollableOptions
public static class PollableOptions.ExponentialPollStrategy
extends PollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
This represents the
PollableOptions.PollStrategyType.EXPONENTIAL
polling strategy
with back-off and jitter. This strategy applies an interval with an exponential back-off and
jitter, for example: `I = random(MIN, min(MAX, C * 2^n))`.
See https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter for more details on the theory behind this strategy.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.broadleafcommerce.metadata.dsl.core.extension.PollableOptions.PollStrategy
getType
-
Constructor Details
-
ExponentialPollStrategy
public ExponentialPollStrategy(int interval, int min, int max) -
ExponentialPollStrategy
-
-
Method Details
-
copy
- Returns:
- a deep copy of this instance
-
getInterval
public int getInterval() -
getMin
public int getMin() -
getMax
public int getMax() -
equals
- Overrides:
equals
in classPollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
-
canEqual
- Overrides:
canEqual
in classPollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
-