Package io.awspring.cloud.sqs.operations
Record Class SendResult.Batch<T>
java.lang.Object
java.lang.Record
io.awspring.cloud.sqs.operations.SendResult.Batch<T>
- Type Parameters:
T- the message payload type.- Record Components:
successful- theSendResultfor messages successfully sent.failed- theSendResultfor messages that failed to be sent.
- Enclosing class:
- SendResult<T>
public static record SendResult.Batch<T>(Collection<SendResult<T>> successful, Collection<SendResult.Failed<T>> failed)
extends Record
The result of a batch send operation.
-
Constructor Summary
ConstructorsConstructorDescriptionBatch(Collection<SendResult<T>> successful, Collection<SendResult.Failed<T>> failed) Creates an instance of aBatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.failed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesuccessfulrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Batch
Creates an instance of aBatchrecord class.- Parameters:
successful- the value for thesuccessfulrecord componentfailed- the value for thefailedrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
successful
Returns the value of thesuccessfulrecord component.- Returns:
- the value of the
successfulrecord component
-
failed
Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-