Package com.couchbase.client.core.time
Class FixedDelay
- java.lang.Object
-
- com.couchbase.client.core.time.Delay
-
- com.couchbase.client.core.time.FixedDelay
-
public class FixedDelay extends Delay
Delay which is fixed for every attempt.- Since:
- 1.1.0
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
calculate(long attempt)
Calculate a specific delay based on the attempt passed in.String
toString()
-
Methods inherited from class com.couchbase.client.core.time.Delay
exponential, exponential, exponential, exponential, exponential, fixed, linear, linear, linear, linear, unit
-
-
-
-
Method Detail
-
calculate
public long calculate(long attempt)
Description copied from class: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.
-
-