Class RetriableFailure.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class RetriableFailure.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for RetriableFailure instances.
-
-
Field Summary
Fields Modifier and Type Field Description public int
numberOfRemainingRetries
public Instant
nextTryAt
-
Method Summary
Modifier and Type Method Description int
getNumberOfRemainingRetries()
Gets the value of the 'numberOfRemainingRetries' field. RetriableFailure.Builder
setNumberOfRemainingRetries(int value)
Sets the value of the 'numberOfRemainingRetries' field. Instant
getNextTryAt()
Gets the value of the 'nextTryAt' field. RetriableFailure.Builder
setNextTryAt(Instant value)
Sets the value of the 'nextTryAt' field. boolean
hasNumberOfRemainingRetries()
Checks whether the 'numberOfRemainingRetries' field has been set. RetriableFailure.Builder
clearNumberOfRemainingRetries()
Clears the value of the 'numberOfRemainingRetries' field. boolean
hasNextTryAt()
Checks whether the 'nextTryAt' field has been set. RetriableFailure.Builder
clearNextTryAt()
Clears the value of the 'nextTryAt' field. RetriableFailure
build()
-
-
Method Detail
-
getNumberOfRemainingRetries
int getNumberOfRemainingRetries()
Gets the value of the 'numberOfRemainingRetries' field. The number of times this request should be retried.
-
setNumberOfRemainingRetries
RetriableFailure.Builder setNumberOfRemainingRetries(int value)
Sets the value of the 'numberOfRemainingRetries' field. The number of times this request should be retried.
- Parameters:
value
- The value of 'numberOfRemainingRetries'.
-
getNextTryAt
Instant getNextTryAt()
Gets the value of the 'nextTryAt' field. The time in which the request should be retried.
-
setNextTryAt
RetriableFailure.Builder setNextTryAt(Instant value)
Sets the value of the 'nextTryAt' field. The time in which the request should be retried.
- Parameters:
value
- The value of 'nextTryAt'.
-
hasNumberOfRemainingRetries
boolean hasNumberOfRemainingRetries()
Checks whether the 'numberOfRemainingRetries' field has been set. The number of times this request should be retried.
-
clearNumberOfRemainingRetries
RetriableFailure.Builder clearNumberOfRemainingRetries()
Clears the value of the 'numberOfRemainingRetries' field. The number of times this request should be retried.
-
hasNextTryAt
boolean hasNextTryAt()
Checks whether the 'nextTryAt' field has been set. The time in which the request should be retried.
-
clearNextTryAt
RetriableFailure.Builder clearNextTryAt()
Clears the value of the 'nextTryAt' field. The time in which the request should be retried.
-
build
RetriableFailure build()
-
-
-
-