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 thePollableOptions.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExponentialPollStrategy(int interval, int min, int max)
ExponentialPollStrategy(PollableOptions.ExponentialPollStrategy strategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
PollableOptions.ExponentialPollStrategy
copy()
boolean
equals(Object o)
int
getInterval()
int
getMax()
int
getMin()
int
hashCode()
-
Methods inherited from class com.broadleafcommerce.metadata.dsl.core.extension.PollableOptions.PollStrategy
getType
-
-
-
-
Constructor Detail
-
ExponentialPollStrategy
public ExponentialPollStrategy(int interval, int min, int max)
-
ExponentialPollStrategy
public ExponentialPollStrategy(PollableOptions.ExponentialPollStrategy strategy)
-
-
Method Detail
-
copy
public PollableOptions.ExponentialPollStrategy copy()
- Returns:
- a deep copy of this instance
-
getInterval
public int getInterval()
-
getMin
public int getMin()
-
getMax
public int getMax()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classPollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqual
in classPollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
-
-