Class StreamMessageProperties

java.lang.Object
org.springframework.amqp.core.MessageProperties
org.springframework.rabbit.stream.support.StreamMessageProperties
All Implemented Interfaces:
Serializable

public class StreamMessageProperties extends MessageProperties
MessageProperties extension for stream messages.
Since:
2.4
Author:
Gary Russell
See Also:
  • Constructor Details

    • StreamMessageProperties

      public StreamMessageProperties()
      Create a new instance.
    • StreamMessageProperties

      public StreamMessageProperties(@Nullable com.rabbitmq.stream.MessageHandler.Context context)
      Create a new instance with the provided context.
      Parameters:
      context - the context.
  • Method Details

    • getContext

      @Nullable public com.rabbitmq.stream.MessageHandler.Context getContext()
      Return the stream MessageHandler.Context for the message.
      Returns:
      the context.
    • getTo

      public String getTo()
      See Properties.getTo().
      Returns:
      the to address.
    • setTo

      public void setTo(String address)
      See MessageBuilder.PropertiesBuilder.to(String).
      Parameters:
      address - the address.
    • getSubject

      public String getSubject()
      See Properties.getSubject().
      Returns:
      the subject.
    • setSubject

      public void setSubject(String subject)
      See MessageBuilder.PropertiesBuilder.subject(String).
      Parameters:
      subject - the subject.
    • getCreationTime

      public long getCreationTime()
      See Properties.getCreationTime().
      Returns:
      the creation time.
    • setCreationTime

      public void setCreationTime(long creationTime)
      See MessageBuilder.PropertiesBuilder.creationTime(long).
      Parameters:
      creationTime - the creation time.
    • getGroupId

      public String getGroupId()
      See Properties.getGroupId().
      Returns:
      the group id.
    • setGroupId

      public void setGroupId(String groupId)
      See MessageBuilder.PropertiesBuilder.groupId(String).
      Parameters:
      groupId - the group id.
    • getGroupSequence

      public long getGroupSequence()
      See Properties.getGroupSequence().
      Returns:
      the group sequence.
    • setGroupSequence

      public void setGroupSequence(long groupSequence)
      See MessageBuilder.PropertiesBuilder.groupSequence(long).
      Parameters:
      groupSequence - the group sequence.
    • getReplyToGroupId

      public String getReplyToGroupId()
      See Properties.getReplyToGroupId().
      Returns:
      the reply to group id.
    • setReplyToGroupId

      public void setReplyToGroupId(String replyToGroupId)
      See MessageBuilder.PropertiesBuilder.replyToGroupId(String).
      Parameters:
      replyToGroupId - the reply to group id.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class MessageProperties
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class MessageProperties