public class LinearDelay extends Delay
Delay which increases linearly for every attempt.
Modifier and Type | Method and Description |
---|---|
long |
calculate(long attempt)
Calculate a specific delay based on the attempt passed in.
|
String |
toString() |
exponential, exponential, exponential, exponential, exponential, fixed, linear, linear, linear, linear, unit
public long calculate(long attempt)
Delay
Calculate a specific delay based on the attempt passed in.
This method is to be implemented by the child implementations and depending on the params that were set during construction time.
Copyright © 2018 Couchbase, Inc.. All rights reserved.