Record Class CompletionConfig.CompletionStatus
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.config.CompletionConfig.CompletionStatus
- Record Components:
successCount- completed items that succeededfailureCount- completed items that failedcompletedCount- completed items, equal to successCount + failureCounttotalCount- registered itemsallItemsRegistered- 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 Summary
ConstructorsConstructorDescriptionCompletionStatus(int successCount, int failureCount, int completedCount, int totalCount) CompletionStatus(int successCount, int failureCount, int completedCount, int totalCount, boolean allItemsRegistered) Creates an instance of aCompletionStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanReturns the value of theallItemsRegisteredrecord component.intReturns the value of thecompletedCountrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailureCountrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thesuccessCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.
-
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 aCompletionStatusrecord class.- Parameters:
successCount- the value for thesuccessCountrecord componentfailureCount- the value for thefailureCountrecord componentcompletedCount- the value for thecompletedCountrecord componenttotalCount- the value for thetotalCountrecord componentallItemsRegistered- the value for theallItemsRegisteredrecord component
-
-
Method Details
-
allCompleted
public boolean allCompleted() -
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. -
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. -
equals
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 '=='. -
successCount
public int successCount()Returns the value of thesuccessCountrecord component.- Returns:
- the value of the
successCountrecord component
-
failureCount
public int failureCount()Returns the value of thefailureCountrecord component.- Returns:
- the value of the
failureCountrecord component
-
completedCount
public int completedCount()Returns the value of thecompletedCountrecord component.- Returns:
- the value of the
completedCountrecord component
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
allItemsRegistered
public boolean allItemsRegistered()Returns the value of theallItemsRegisteredrecord component.- Returns:
- the value of the
allItemsRegisteredrecord component
-