Package com.fauna.client
Class ExponentialBackoffStrategy.Builder
- java.lang.Object
-
- com.fauna.client.ExponentialBackoffStrategy.Builder
-
- Enclosing class:
- ExponentialBackoffStrategy
public static class ExponentialBackoffStrategy.Builder extends java.lang.Object
Build a new ExponentialBackoffStrategy. This builder only supports setting maxAttempts, because that's the only variable that we recommend users change in production. If you need to modify other values for debugging, or other purposes, then you can use the constructor directly.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExponentialBackoffStrategy
build()
ExponentialBackoffStrategy.Builder
setMaxAttempts(int maxAttempts)
-
-
-
Method Detail
-
setMaxAttempts
public ExponentialBackoffStrategy.Builder setMaxAttempts(int maxAttempts)
-
build
public ExponentialBackoffStrategy build()
-
-