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.

    • Constructor Detail

    • 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

      • 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

      • 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

      • 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

      • 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

      • hasFirstFailureTimestamp

         boolean hasFirstFailureTimestamp()

        Checks whether the 'firstFailureTimestamp' field has been set. 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