Record Class CompletionConfig.CompletionStatus

java.lang.Object
java.lang.Record
software.amazon.lambda.durable.config.CompletionConfig.CompletionStatus
Record Components:
successCount - completed items that succeeded
failureCount - completed items that failed
completedCount - completed items, equal to successCount + failureCount
totalCount - registered items
allItemsRegistered - true once the caller has registered all items
Enclosing class:
CompletionConfig

public static record CompletionConfig.CompletionStatus(int successCount, int failureCount, int completedCount, int totalCount, boolean allItemsRegistered) extends Record
Live completion progress for a map or parallel operation.
  • Constructor Details

    • CompletionStatus

      public CompletionStatus(int successCount, int failureCount, int completedCount, int totalCount)
    • CompletionStatus

      public CompletionStatus(int successCount, int failureCount, int completedCount, int totalCount, boolean allItemsRegistered)
      Creates an instance of a CompletionStatus record class.
      Parameters:
      successCount - the value for the successCount record component
      failureCount - the value for the failureCount record component
      completedCount - the value for the completedCount record component
      totalCount - the value for the totalCount record component
      allItemsRegistered - the value for the allItemsRegistered record component
  • Method Details

    • allCompleted

      public boolean allCompleted()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • successCount

      public int successCount()
      Returns the value of the successCount record component.
      Returns:
      the value of the successCount record component
    • failureCount

      public int failureCount()
      Returns the value of the failureCount record component.
      Returns:
      the value of the failureCount record component
    • completedCount

      public int completedCount()
      Returns the value of the completedCount record component.
      Returns:
      the value of the completedCount record component
    • totalCount

      public int totalCount()
      Returns the value of the totalCount record component.
      Returns:
      the value of the totalCount record component
    • allItemsRegistered

      public boolean allItemsRegistered()
      Returns the value of the allItemsRegistered record component.
      Returns:
      the value of the allItemsRegistered record component