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
- theSendResult
for messages successfully sent.failed
- theSendResult
for 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 aBatch
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.failed()
Returns the value of thefailed
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thesuccessful
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Batch
Creates an instance of aBatch
record class.- Parameters:
successful
- the value for thesuccessful
record componentfailed
- the value for thefailed
record 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 thesuccessful
record component.- Returns:
- the value of the
successful
record component
-
failed
Returns the value of thefailed
record component.- Returns:
- the value of the
failed
record component
-