Package io.milvus.param
Class RetryParam
- java.lang.Object
-
- io.milvus.param.RetryParam
-
public class RetryParam extends Object
Parameters for retry on failure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRetryParam.BuilderBuilder forRetryParam
-
Constructor Summary
Constructors Modifier Constructor Description protectedRetryParam(RetryParam.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBackOffMultiplier()longgetInitialBackOffMs()longgetMaxBackOffMs()intgetMaxRetryTimes()booleanisRetryOnRateLimit()static RetryParam.BuildernewBuilder()voidsetBackOffMultiplier(int backOffMultiplier)voidsetInitialBackOffMs(long initialBackOffMs)voidsetMaxBackOffMs(long maxBackOffMs)voidsetMaxRetryTimes(int maxRetryTimes)voidsetRetryOnRateLimit(boolean retryOnRateLimit)StringtoString()
-
-
-
Constructor Detail
-
RetryParam
protected RetryParam(RetryParam.Builder builder)
-
-
Method Detail
-
newBuilder
public static RetryParam.Builder newBuilder()
-
getMaxRetryTimes
public int getMaxRetryTimes()
-
setMaxRetryTimes
public void setMaxRetryTimes(int maxRetryTimes)
-
getInitialBackOffMs
public long getInitialBackOffMs()
-
setInitialBackOffMs
public void setInitialBackOffMs(long initialBackOffMs)
-
getMaxBackOffMs
public long getMaxBackOffMs()
-
setMaxBackOffMs
public void setMaxBackOffMs(long maxBackOffMs)
-
getBackOffMultiplier
public int getBackOffMultiplier()
-
setBackOffMultiplier
public void setBackOffMultiplier(int backOffMultiplier)
-
isRetryOnRateLimit
public boolean isRetryOnRateLimit()
-
setRetryOnRateLimit
public void setRetryOnRateLimit(boolean retryOnRateLimit)
-
-