Class ErrorMap.RetrySpecification
java.lang.Object
com.couchbase.client.core.io.netty.kv.ErrorMap.RetrySpecification
- Enclosing class:
- ErrorMap
public static class ErrorMap.RetrySpecification extends Object
-
Constructor Summary
Constructors Constructor Description RetrySpecification(ErrorMap.RetryStrategy strategy, int interval, int after, int maxDuration, int ceil)
Creates a new retry specification, usually called from jackson. -
Method Summary
Modifier and Type Method Description long
after()
long
ceil()
long
interval()
long
maxDuration()
ErrorMap.RetryStrategy
strategy()
String
toString()
-
Constructor Details
-
RetrySpecification
public RetrySpecification(ErrorMap.RetryStrategy strategy, int interval, int after, int maxDuration, int ceil)Creates a new retry specification, usually called from jackson.- Parameters:
strategy
- the converted strategy.interval
- the retry interval.after
- after which time the retry should happen.maxDuration
- the maximum duration of the retry.ceil
- the ceiling of the retry delay.
-
-
Method Details