Package io.awspring.cloud.sqs.config
Record Class MethodPayloadMetadata
java.lang.Object
java.lang.Record
io.awspring.cloud.sqs.config.MethodPayloadMetadata
- Record Components:
payloadClass- the raw class used as the message conversion targetconversionHint- an optional hint passed to aSmartMessageConverter
public record MethodPayloadMetadata(Class<?> payloadClass, @Nullable Object conversionHint)
extends Record
Metadata inferred from a listener method payload parameter.
- Since:
- 4.1.0
- Author:
- Bruno Augusto Garcia
-
Constructor Summary
ConstructorsConstructorDescriptionMethodPayloadMetadata(Class<?> payloadClass, @Nullable Object conversionHint) Creates an instance of aMethodPayloadMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectReturns the value of theconversionHintrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Class<?>Returns the value of thepayloadClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodPayloadMetadata
Creates an instance of aMethodPayloadMetadatarecord class.- Parameters:
payloadClass- the value for thepayloadClassrecord componentconversionHint- the value for theconversionHintrecord 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). -
payloadClass
Returns the value of thepayloadClassrecord component.- Returns:
- the value of the
payloadClassrecord component
-
conversionHint
Returns the value of theconversionHintrecord component.- Returns:
- the value of the
conversionHintrecord component
-