Package org.mule.jms.commons.api.message
Record Class DefaultJmsAttributes
java.lang.Object
java.lang.Record
org.mule.jms.commons.api.message.DefaultJmsAttributes
- All Implemented Interfaces:
Serializable,JmsAttributes
public record DefaultJmsAttributes(JmsMessageProperties properties, JmsHeaders headers, String ackId)
extends Record
implements JmsAttributes, Serializable
Contains all the metadata of a JMS
Message, it carries information such as
the Headers, the Properties and the required ID for performing an ACK on the Message.- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultJmsAttributes(JmsMessageProperties properties, JmsHeaders headers, String ackId) Creates an instance of aDefaultJmsAttributesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionackId()Returns the value of theackIdrecord component.final booleanIndicates whether some other object is "equal to" this one.getAckId()final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DefaultJmsAttributes
public DefaultJmsAttributes(JmsMessageProperties properties, JmsHeaders headers, @Optional String ackId) Creates an instance of aDefaultJmsAttributesrecord class.- Parameters:
properties- the value for thepropertiesrecord componentheaders- the value for theheadersrecord componentackId- the value for theackIdrecord component
-
-
Method Details
-
getProperties
Description copied from interface:JmsAttributes- Specified by:
getPropertiesin interfaceJmsAttributes
-
getHeaders
Description copied from interface:JmsAttributes- Specified by:
getHeadersin interfaceJmsAttributes
-
getAckId
Description copied from interface:JmsAttributes- Specified by:
getAckIdin interfaceJmsAttributes
-
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). -
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
ackId
Returns the value of theackIdrecord component.- Returns:
- the value of the
ackIdrecord component
-