@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2022-01-11") public class RetryPolicy extends java.lang.Object implements org.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<RetryPolicy>
Modifier and Type | Class and Description |
---|---|
static class |
RetryPolicy._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
double |
backoffCoefficient |
int |
expirationIntervalInSeconds |
int |
initialIntervalInSeconds |
int |
maximumAttempts |
int |
maximumIntervalInSeconds |
static java.util.Map<RetryPolicy._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
java.util.List<java.lang.String> |
nonRetriableErrorReasons |
Constructor and Description |
---|
RetryPolicy() |
RetryPolicy(RetryPolicy other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
addToNonRetriableErrorReasons(java.lang.String elem) |
void |
clear() |
int |
compareTo(RetryPolicy other) |
RetryPolicy |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(RetryPolicy that) |
RetryPolicy._Fields |
fieldForId(int fieldId) |
double |
getBackoffCoefficient() |
int |
getExpirationIntervalInSeconds() |
java.lang.Object |
getFieldValue(RetryPolicy._Fields field) |
int |
getInitialIntervalInSeconds() |
int |
getMaximumAttempts() |
int |
getMaximumIntervalInSeconds() |
java.util.List<java.lang.String> |
getNonRetriableErrorReasons() |
java.util.Iterator<java.lang.String> |
getNonRetriableErrorReasonsIterator() |
int |
getNonRetriableErrorReasonsSize() |
int |
hashCode() |
boolean |
isSet(RetryPolicy._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetBackoffCoefficient()
Returns true if field backoffCoefficient is set (has been assigned a value) and false otherwise
|
boolean |
isSetExpirationIntervalInSeconds()
Returns true if field expirationIntervalInSeconds is set (has been assigned a value) and false otherwise
|
boolean |
isSetInitialIntervalInSeconds()
Returns true if field initialIntervalInSeconds is set (has been assigned a value) and false otherwise
|
boolean |
isSetMaximumAttempts()
Returns true if field maximumAttempts is set (has been assigned a value) and false otherwise
|
boolean |
isSetMaximumIntervalInSeconds()
Returns true if field maximumIntervalInSeconds is set (has been assigned a value) and false otherwise
|
boolean |
isSetNonRetriableErrorReasons()
Returns true if field nonRetriableErrorReasons is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
RetryPolicy |
setBackoffCoefficient(double backoffCoefficient) |
void |
setBackoffCoefficientIsSet(boolean value) |
RetryPolicy |
setExpirationIntervalInSeconds(int expirationIntervalInSeconds) |
void |
setExpirationIntervalInSecondsIsSet(boolean value) |
void |
setFieldValue(RetryPolicy._Fields field,
java.lang.Object value) |
RetryPolicy |
setInitialIntervalInSeconds(int initialIntervalInSeconds) |
void |
setInitialIntervalInSecondsIsSet(boolean value) |
RetryPolicy |
setMaximumAttempts(int maximumAttempts) |
void |
setMaximumAttemptsIsSet(boolean value) |
RetryPolicy |
setMaximumIntervalInSeconds(int maximumIntervalInSeconds) |
void |
setMaximumIntervalInSecondsIsSet(boolean value) |
RetryPolicy |
setNonRetriableErrorReasons(java.util.List<java.lang.String> nonRetriableErrorReasons) |
void |
setNonRetriableErrorReasonsIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetBackoffCoefficient() |
void |
unsetExpirationIntervalInSeconds() |
void |
unsetInitialIntervalInSeconds() |
void |
unsetMaximumAttempts() |
void |
unsetMaximumIntervalInSeconds() |
void |
unsetNonRetriableErrorReasons() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public int initialIntervalInSeconds
public double backoffCoefficient
public int maximumIntervalInSeconds
public int maximumAttempts
public java.util.List<java.lang.String> nonRetriableErrorReasons
public int expirationIntervalInSeconds
public static final java.util.Map<RetryPolicy._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public RetryPolicy()
public RetryPolicy(RetryPolicy other)
public RetryPolicy deepCopy()
deepCopy
in interface org.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
public int getInitialIntervalInSeconds()
public RetryPolicy setInitialIntervalInSeconds(int initialIntervalInSeconds)
public void unsetInitialIntervalInSeconds()
public boolean isSetInitialIntervalInSeconds()
public void setInitialIntervalInSecondsIsSet(boolean value)
public double getBackoffCoefficient()
public RetryPolicy setBackoffCoefficient(double backoffCoefficient)
public void unsetBackoffCoefficient()
public boolean isSetBackoffCoefficient()
public void setBackoffCoefficientIsSet(boolean value)
public int getMaximumIntervalInSeconds()
public RetryPolicy setMaximumIntervalInSeconds(int maximumIntervalInSeconds)
public void unsetMaximumIntervalInSeconds()
public boolean isSetMaximumIntervalInSeconds()
public void setMaximumIntervalInSecondsIsSet(boolean value)
public int getMaximumAttempts()
public RetryPolicy setMaximumAttempts(int maximumAttempts)
public void unsetMaximumAttempts()
public boolean isSetMaximumAttempts()
public void setMaximumAttemptsIsSet(boolean value)
public int getNonRetriableErrorReasonsSize()
public java.util.Iterator<java.lang.String> getNonRetriableErrorReasonsIterator()
public void addToNonRetriableErrorReasons(java.lang.String elem)
public java.util.List<java.lang.String> getNonRetriableErrorReasons()
public RetryPolicy setNonRetriableErrorReasons(java.util.List<java.lang.String> nonRetriableErrorReasons)
public void unsetNonRetriableErrorReasons()
public boolean isSetNonRetriableErrorReasons()
public void setNonRetriableErrorReasonsIsSet(boolean value)
public int getExpirationIntervalInSeconds()
public RetryPolicy setExpirationIntervalInSeconds(int expirationIntervalInSeconds)
public void unsetExpirationIntervalInSeconds()
public boolean isSetExpirationIntervalInSeconds()
public void setExpirationIntervalInSecondsIsSet(boolean value)
public void setFieldValue(RetryPolicy._Fields field, java.lang.Object value)
setFieldValue
in interface org.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
public java.lang.Object getFieldValue(RetryPolicy._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
public boolean isSet(RetryPolicy._Fields field)
isSet
in interface org.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean equals(RetryPolicy that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(RetryPolicy other)
compareTo
in interface java.lang.Comparable<RetryPolicy>
public RetryPolicy._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
org.apache.thrift.TException
public java.lang.String toString()
toString
in class java.lang.Object
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException