Class MessageAnnotations

  • All Implemented Interfaces:
    SectionIF

    public class MessageAnnotations
    extends Annotations
    implements SectionIF

    The message-annotations section is used for properties of the message which are aimed at the infrastructure and should be propagated across every delivery step. Message annotations convey information about the message. Intermediaries MUST propagate the annotations unless the annotations are explicitly augmented or modified (e.g., by the use of the outcome).

    The capabilities negotiated on link and on the and may be used to establish which annotations a peer understands; however, in a network of AMQP intermediaries it may not be possible to know if every intermediary will understand the annotation. Note that for some annotations it may not be necessary for the intermediary to understand their purpose, i.e., they could be used purely as an attribute which can be filtered on.

    A registry of defined annotations and their meanings is maintained [ AMQPMESSANN ].

    If the message-annotations section is omitted, it is equivalent to a message-annotations section containing an empty map of annotations.

    Version:
    AMQP Version v100. Generation Date: Wed Apr 18 14:09:32 CEST 2012
    Author:
    IIT Software GmbH, Bremen/Germany, (c) 2012, All Rights Reserved
    • Constructor Detail

      • MessageAnnotations

        public MessageAnnotations​(java.util.Map initValue)
                           throws java.io.IOException
        Constructs a MessageAnnotations.
        Parameters:
        initValue - initial value
        Throws:
        error - during initialization
        java.io.IOException
    • Method Detail

      • accept

        public void accept​(SectionVisitor visitor)
        Accept method for a Section visitor.
        Specified by:
        accept in interface SectionIF
        Parameters:
        visitor - Section visitor
      • hasDescriptor

        public boolean hasDescriptor()
        Return whether this MessageAnnotations has a descriptor
        Overrides:
        hasDescriptor in class AMQPType
        Returns:
        true/false
      • writeContent

        public void writeContent​(java.io.DataOutput out)
                          throws java.io.IOException
        Description copied from class: AMQPType
        Write the content of this type to a DataOutput.
        Overrides:
        writeContent in class AMQPMap
        Parameters:
        out - DataOutput
        Throws:
        java.io.IOException - on error