Class ErrorMap.RetrySpecification
- java.lang.Object
-
- com.couchbase.client.core.io.netty.kv.ErrorMap.RetrySpecification
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
after()
long
ceil()
long
interval()
long
maxDuration()
ErrorMap.RetryStrategy
strategy()
String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
strategy
public ErrorMap.RetryStrategy strategy()
-
interval
public long interval()
-
after
public long after()
-
maxDuration
public long maxDuration()
-
ceil
public long ceil()
-
-