Package com.uber.cadence
Class RetryPolicy
- java.lang.Object
-
- com.uber.cadence.RetryPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<RetryPolicy>
,org.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2023-01-06") 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>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RetryPolicy._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description RetryPolicy()
RetryPolicy(RetryPolicy other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToNonRetriableErrorReasons(java.lang.String elem)
void
clear()
int
compareTo(RetryPolicy other)
RetryPolicy
deepCopy()
boolean
equals(RetryPolicy that)
boolean
equals(java.lang.Object 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 otherwiseboolean
isSetBackoffCoefficient()
Returns true if field backoffCoefficient is set (has been assigned a value) and false otherwiseboolean
isSetExpirationIntervalInSeconds()
Returns true if field expirationIntervalInSeconds is set (has been assigned a value) and false otherwiseboolean
isSetInitialIntervalInSeconds()
Returns true if field initialIntervalInSeconds is set (has been assigned a value) and false otherwiseboolean
isSetMaximumAttempts()
Returns true if field maximumAttempts is set (has been assigned a value) and false otherwiseboolean
isSetMaximumIntervalInSeconds()
Returns true if field maximumIntervalInSeconds is set (has been assigned a value) and false otherwiseboolean
isSetNonRetriableErrorReasons()
Returns true if field nonRetriableErrorReasons is set (has been assigned a value) and false otherwisevoid
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)
-
-
-
Field Detail
-
initialIntervalInSeconds
public int initialIntervalInSeconds
-
backoffCoefficient
public double backoffCoefficient
-
maximumIntervalInSeconds
public int maximumIntervalInSeconds
-
maximumAttempts
public int maximumAttempts
-
nonRetriableErrorReasons
public java.util.List<java.lang.String> nonRetriableErrorReasons
-
expirationIntervalInSeconds
public int expirationIntervalInSeconds
-
metaDataMap
public static final java.util.Map<RetryPolicy._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
RetryPolicy
public RetryPolicy()
-
RetryPolicy
public RetryPolicy(RetryPolicy other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public RetryPolicy deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
-
getInitialIntervalInSeconds
public int getInitialIntervalInSeconds()
-
setInitialIntervalInSeconds
public RetryPolicy setInitialIntervalInSeconds(int initialIntervalInSeconds)
-
unsetInitialIntervalInSeconds
public void unsetInitialIntervalInSeconds()
-
isSetInitialIntervalInSeconds
public boolean isSetInitialIntervalInSeconds()
Returns true if field initialIntervalInSeconds is set (has been assigned a value) and false otherwise
-
setInitialIntervalInSecondsIsSet
public void setInitialIntervalInSecondsIsSet(boolean value)
-
getBackoffCoefficient
public double getBackoffCoefficient()
-
setBackoffCoefficient
public RetryPolicy setBackoffCoefficient(double backoffCoefficient)
-
unsetBackoffCoefficient
public void unsetBackoffCoefficient()
-
isSetBackoffCoefficient
public boolean isSetBackoffCoefficient()
Returns true if field backoffCoefficient is set (has been assigned a value) and false otherwise
-
setBackoffCoefficientIsSet
public void setBackoffCoefficientIsSet(boolean value)
-
getMaximumIntervalInSeconds
public int getMaximumIntervalInSeconds()
-
setMaximumIntervalInSeconds
public RetryPolicy setMaximumIntervalInSeconds(int maximumIntervalInSeconds)
-
unsetMaximumIntervalInSeconds
public void unsetMaximumIntervalInSeconds()
-
isSetMaximumIntervalInSeconds
public boolean isSetMaximumIntervalInSeconds()
Returns true if field maximumIntervalInSeconds is set (has been assigned a value) and false otherwise
-
setMaximumIntervalInSecondsIsSet
public void setMaximumIntervalInSecondsIsSet(boolean value)
-
getMaximumAttempts
public int getMaximumAttempts()
-
setMaximumAttempts
public RetryPolicy setMaximumAttempts(int maximumAttempts)
-
unsetMaximumAttempts
public void unsetMaximumAttempts()
-
isSetMaximumAttempts
public boolean isSetMaximumAttempts()
Returns true if field maximumAttempts is set (has been assigned a value) and false otherwise
-
setMaximumAttemptsIsSet
public void setMaximumAttemptsIsSet(boolean value)
-
getNonRetriableErrorReasonsSize
public int getNonRetriableErrorReasonsSize()
-
getNonRetriableErrorReasonsIterator
public java.util.Iterator<java.lang.String> getNonRetriableErrorReasonsIterator()
-
addToNonRetriableErrorReasons
public void addToNonRetriableErrorReasons(java.lang.String elem)
-
getNonRetriableErrorReasons
public java.util.List<java.lang.String> getNonRetriableErrorReasons()
-
setNonRetriableErrorReasons
public RetryPolicy setNonRetriableErrorReasons(java.util.List<java.lang.String> nonRetriableErrorReasons)
-
unsetNonRetriableErrorReasons
public void unsetNonRetriableErrorReasons()
-
isSetNonRetriableErrorReasons
public boolean isSetNonRetriableErrorReasons()
Returns true if field nonRetriableErrorReasons is set (has been assigned a value) and false otherwise
-
setNonRetriableErrorReasonsIsSet
public void setNonRetriableErrorReasonsIsSet(boolean value)
-
getExpirationIntervalInSeconds
public int getExpirationIntervalInSeconds()
-
setExpirationIntervalInSeconds
public RetryPolicy setExpirationIntervalInSeconds(int expirationIntervalInSeconds)
-
unsetExpirationIntervalInSeconds
public void unsetExpirationIntervalInSeconds()
-
isSetExpirationIntervalInSeconds
public boolean isSetExpirationIntervalInSeconds()
Returns true if field expirationIntervalInSeconds is set (has been assigned a value) and false otherwise
-
setExpirationIntervalInSecondsIsSet
public void setExpirationIntervalInSecondsIsSet(boolean value)
-
setFieldValue
public void setFieldValue(RetryPolicy._Fields field, java.lang.Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
-
getFieldValue
public java.lang.Object getFieldValue(RetryPolicy._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
-
isSet
public boolean isSet(RetryPolicy._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(RetryPolicy that)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(RetryPolicy other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<RetryPolicy>
-
fieldForId
public RetryPolicy._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
- Specified by:
write
in interfaceorg.apache.thrift.TBase<RetryPolicy,RetryPolicy._Fields>
- Throws:
org.apache.thrift.TException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-