Class RetryState.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class RetryState.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for RetryState instances.
-
-
Field Summary
Fields Modifier and Type Field Description public int
retryCount
public FlowEvent
failedEvent
public FlowEvent.Builder
failedEventBuilder
public ExceptionEnvelope
error
public ExceptionEnvelope.Builder
errorBuilder
public Instant
firstFailureTimestamp
public Instant
lastFailureTimestamp
-
Method Summary
Modifier and Type Method Description int
getRetryCount()
Gets the value of the 'retryCount' field. RetryState.Builder
setRetryCount(int value)
Sets the value of the 'retryCount' field. FlowEvent
getFailedEvent()
Gets the value of the 'failedEvent' field. RetryState.Builder
setFailedEvent(FlowEvent value)
Sets the value of the 'failedEvent' field. FlowEvent.Builder
getFailedEventBuilder()
Gets the Builder instance for the 'failedEvent' field and creates one if it doesn't exist yet. RetryState.Builder
setFailedEventBuilder(FlowEvent.Builder value)
Sets the Builder instance for the 'failedEvent' field Copy of the event that caused the failure ExceptionEnvelope
getError()
Gets the value of the 'error' field. RetryState.Builder
setError(ExceptionEnvelope value)
Sets the value of the 'error' field. ExceptionEnvelope.Builder
getErrorBuilder()
Gets the Builder instance for the 'error' field and creates one if it doesn't exist yet. RetryState.Builder
setErrorBuilder(ExceptionEnvelope.Builder value)
Sets the Builder instance for the 'error' field The original error that caused the retry Instant
getFirstFailureTimestamp()
Gets the value of the 'firstFailureTimestamp' field. RetryState.Builder
setFirstFailureTimestamp(Instant value)
Sets the value of the 'firstFailureTimestamp' field. Instant
getLastFailureTimestamp()
Gets the value of the 'lastFailureTimestamp' field. RetryState.Builder
setLastFailureTimestamp(Instant value)
Sets the value of the 'lastFailureTimestamp' field. boolean
hasRetryCount()
Checks whether the 'retryCount' field has been set. RetryState.Builder
clearRetryCount()
Clears the value of the 'retryCount' field. boolean
hasFailedEvent()
Checks whether the 'failedEvent' field has been set. boolean
hasFailedEventBuilder()
Checks whether the 'failedEvent' field has an active Builder instance Copy of the event that caused the failure RetryState.Builder
clearFailedEvent()
Clears the value of the 'failedEvent' field. boolean
hasError()
Checks whether the 'error' field has been set. boolean
hasErrorBuilder()
Checks whether the 'error' field has an active Builder instance The original error that caused the retry RetryState.Builder
clearError()
Clears the value of the 'error' field. boolean
hasFirstFailureTimestamp()
Checks whether the 'firstFailureTimestamp' field has been set. RetryState.Builder
clearFirstFailureTimestamp()
Clears the value of the 'firstFailureTimestamp' field. boolean
hasLastFailureTimestamp()
Checks whether the 'lastFailureTimestamp' field has been set. RetryState.Builder
clearLastFailureTimestamp()
Clears the value of the 'lastFailureTimestamp' field. RetryState
build()
-
-
Method Detail
-
getRetryCount
int getRetryCount()
Gets the value of the 'retryCount' field. The current retry count, set to 0 for the initial failure
-
setRetryCount
RetryState.Builder setRetryCount(int value)
Sets the value of the 'retryCount' field. The current retry count, set to 0 for the initial failure
- Parameters:
value
- The value of 'retryCount'.
-
getFailedEvent
FlowEvent getFailedEvent()
Gets the value of the 'failedEvent' field. Copy of the event that caused the failure
-
setFailedEvent
RetryState.Builder setFailedEvent(FlowEvent value)
Sets the value of the 'failedEvent' field. Copy of the event that caused the failure
- Parameters:
value
- The value of 'failedEvent'.
-
getFailedEventBuilder
FlowEvent.Builder getFailedEventBuilder()
Gets the Builder instance for the 'failedEvent' field and creates one if it doesn't exist yet. Copy of the event that caused the failure
-
setFailedEventBuilder
RetryState.Builder setFailedEventBuilder(FlowEvent.Builder value)
Sets the Builder instance for the 'failedEvent' field Copy of the event that caused the failure
- Parameters:
value
- The builder instance that must be set.
-
getError
ExceptionEnvelope getError()
Gets the value of the 'error' field. The original error that caused the retry
-
setError
RetryState.Builder setError(ExceptionEnvelope value)
Sets the value of the 'error' field. The original error that caused the retry
- Parameters:
value
- The value of 'error'.
-
getErrorBuilder
ExceptionEnvelope.Builder getErrorBuilder()
Gets the Builder instance for the 'error' field and creates one if it doesn't exist yet. The original error that caused the retry
-
setErrorBuilder
RetryState.Builder setErrorBuilder(ExceptionEnvelope.Builder value)
Sets the Builder instance for the 'error' field The original error that caused the retry
- Parameters:
value
- The builder instance that must be set.
-
getFirstFailureTimestamp
Instant getFirstFailureTimestamp()
Gets the value of the 'firstFailureTimestamp' field. The timestamp of when the first exception occurred that triggered a retry
-
setFirstFailureTimestamp
RetryState.Builder setFirstFailureTimestamp(Instant value)
Sets the value of the 'firstFailureTimestamp' field. The timestamp of when the first exception occurred that triggered a retry
- Parameters:
value
- The value of 'firstFailureTimestamp'.
-
getLastFailureTimestamp
Instant getLastFailureTimestamp()
Gets the value of the 'lastFailureTimestamp' field. The timestamp of when the last exception occurred that triggered a retry (this will be the same as firstRetryTimestamp for a first time failure
-
setLastFailureTimestamp
RetryState.Builder setLastFailureTimestamp(Instant value)
Sets the value of the 'lastFailureTimestamp' field. The timestamp of when the last exception occurred that triggered a retry (this will be the same as firstRetryTimestamp for a first time failure
- Parameters:
value
- The value of 'lastFailureTimestamp'.
-
hasRetryCount
boolean hasRetryCount()
Checks whether the 'retryCount' field has been set. The current retry count, set to 0 for the initial failure
-
clearRetryCount
RetryState.Builder clearRetryCount()
Clears the value of the 'retryCount' field. The current retry count, set to 0 for the initial failure
-
hasFailedEvent
boolean hasFailedEvent()
Checks whether the 'failedEvent' field has been set. Copy of the event that caused the failure
-
hasFailedEventBuilder
boolean hasFailedEventBuilder()
Checks whether the 'failedEvent' field has an active Builder instance Copy of the event that caused the failure
-
clearFailedEvent
RetryState.Builder clearFailedEvent()
Clears the value of the 'failedEvent' field. Copy of the event that caused the failure
-
hasError
boolean hasError()
Checks whether the 'error' field has been set. The original error that caused the retry
-
hasErrorBuilder
boolean hasErrorBuilder()
Checks whether the 'error' field has an active Builder instance The original error that caused the retry
-
clearError
RetryState.Builder clearError()
Clears the value of the 'error' field. The original error that caused the retry
-
hasFirstFailureTimestamp
boolean hasFirstFailureTimestamp()
Checks whether the 'firstFailureTimestamp' field has been set. The timestamp of when the first exception occurred that triggered a retry
-
clearFirstFailureTimestamp
RetryState.Builder clearFirstFailureTimestamp()
Clears the value of the 'firstFailureTimestamp' field. The timestamp of when the first exception occurred that triggered a retry
-
hasLastFailureTimestamp
boolean hasLastFailureTimestamp()
Checks whether the 'lastFailureTimestamp' field has been set. The timestamp of when the last exception occurred that triggered a retry (this will be the same as firstRetryTimestamp for a first time failure
-
clearLastFailureTimestamp
RetryState.Builder clearLastFailureTimestamp()
Clears the value of the 'lastFailureTimestamp' field. The timestamp of when the last exception occurred that triggered a retry (this will be the same as firstRetryTimestamp for a first time failure
-
build
RetryState build()
-
-
-
-