public static class PollableOptions.ExponentialPollStrategy extends PollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
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.
Constructor and Description |
---|
ExponentialPollStrategy(int interval,
int min,
int max) |
ExponentialPollStrategy(PollableOptions.ExponentialPollStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
PollableOptions.ExponentialPollStrategy |
copy() |
boolean |
equals(Object o) |
int |
getInterval() |
int |
getMax() |
int |
getMin() |
int |
hashCode() |
getType
public ExponentialPollStrategy(int interval, int min, int max)
public ExponentialPollStrategy(PollableOptions.ExponentialPollStrategy strategy)
public PollableOptions.ExponentialPollStrategy copy()
public int getInterval()
public int getMin()
public int getMax()
public boolean equals(Object o)
equals
in class PollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
protected boolean canEqual(Object other)
canEqual
in class PollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
public int hashCode()
hashCode
in class PollableOptions.PollStrategy<PollableOptions.ExponentialPollStrategy>
Copyright © 2021. All rights reserved.