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 Details

    • DefaultJmsAttributes

      public DefaultJmsAttributes(JmsMessageProperties properties, JmsHeaders headers, @Optional String ackId)
      Creates an instance of a DefaultJmsAttributes record class.
      Parameters:
      properties - the value for the properties record component
      headers - the value for the headers record component
      ackId - the value for the ackId record component
  • Method Details

    • getProperties

      public JmsMessageProperties getProperties()
      Description copied from interface: JmsAttributes
      Specified by:
      getProperties in interface JmsAttributes
    • getHeaders

      public JmsHeaders getHeaders()
      Description copied from interface: JmsAttributes
      Specified by:
      getHeaders in interface JmsAttributes
    • getAckId

      public String getAckId()
      Description copied from interface: JmsAttributes
      Specified by:
      getAckId in interface JmsAttributes
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • properties

      public JmsMessageProperties properties()
      Returns the value of the properties record component.
      Returns:
      the value of the properties record component
    • headers

      public JmsHeaders headers()
      Returns the value of the headers record component.
      Returns:
      the value of the headers record component
    • ackId

      public String ackId()
      Returns the value of the ackId record component.
      Returns:
      the value of the ackId record component