Package com.gooddata.sdk.service.retry
Class RetrySettings
- java.lang.Object
-
- com.gooddata.sdk.service.retry.RetrySettings
-
public class RetrySettings extends java.lang.ObjectContains settings for HTTP requests retry.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.IntegerDEFAULT_RETRY_COUNT
-
Constructor Summary
Constructors Constructor Description RetrySettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.IntegergetRetryCount()Total retry count.java.lang.LonggetRetryInitialInterval()java.lang.LonggetRetryMaxInterval()java.lang.DoublegetRetryMultiplier()If set, exponential strategy is used.inthashCode()voidsetRetryCount(java.lang.Integer retryCount)voidsetRetryInitialInterval(java.lang.Long retryInitialInterval)voidsetRetryMaxInterval(java.lang.Long retryMaxInterval)voidsetRetryMultiplier(java.lang.Double retryMultiplier)
-
-
-
Method Detail
-
getRetryCount
public java.lang.Integer getRetryCount()
Total retry count. Should be > 0. No retry if not set.- Returns:
- retry count
-
setRetryCount
public void setRetryCount(java.lang.Integer retryCount)
-
getRetryInitialInterval
public java.lang.Long getRetryInitialInterval()
- Returns:
- retry initial interval
-
setRetryInitialInterval
public void setRetryInitialInterval(java.lang.Long retryInitialInterval)
-
getRetryMaxInterval
public java.lang.Long getRetryMaxInterval()
- Returns:
- maximum retry interval
-
setRetryMaxInterval
public void setRetryMaxInterval(java.lang.Long retryMaxInterval)
-
getRetryMultiplier
public java.lang.Double getRetryMultiplier()
If set, exponential strategy is used. Every next retry interval will be computed as previos interval multiplied by this number.- Returns:
- retry multiplier
-
setRetryMultiplier
public void setRetryMultiplier(java.lang.Double retryMultiplier)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-