Class Header

  • All Implemented Interfaces:
    SectionIF

    public class Header
    extends AMQPList
    implements SectionIF

    The header section carries standard delivery details about the transfer of a message through the AMQP network. If the header section is omitted the receiver MUST assume the appropriate default values (or the meaning implied by no value being set) for the fields within the unless other target or node specific defaults have otherwise been set.

    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

      • Header

        public Header​(java.util.List initValue)
               throws java.lang.Exception
        Constructs a Header.
        Parameters:
        initValue - initial value
        Throws:
        error - during initialization
        java.lang.Exception
      • Header

        public Header()
        Constructs a Header.
    • Method Detail

      • hasDescriptor

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

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

        public AMQPBoolean getDurable()
        Returns the optional Durable field.
        Returns:
        Durable
      • setDurable

        public void setDurable​(AMQPBoolean durable)
        Sets the optional Durable field.
        Parameters:
        durable - Durable
      • getPriority

        public AMQPUnsignedByte getPriority()
        Returns the optional Priority field.
        Returns:
        Priority
      • setPriority

        public void setPriority​(AMQPUnsignedByte priority)
        Sets the optional Priority field.
        Parameters:
        priority - Priority
      • getTtl

        public Milliseconds getTtl()
        Returns the optional Ttl field.
        Returns:
        Ttl
      • setTtl

        public void setTtl​(Milliseconds ttl)
        Sets the optional Ttl field.
        Parameters:
        ttl - Ttl
      • getFirstAcquirer

        public AMQPBoolean getFirstAcquirer()
        Returns the optional FirstAcquirer field.
        Returns:
        FirstAcquirer
      • setFirstAcquirer

        public void setFirstAcquirer​(AMQPBoolean firstAcquirer)
        Sets the optional FirstAcquirer field.
        Parameters:
        firstAcquirer - FirstAcquirer
      • getDeliveryCount

        public AMQPUnsignedInt getDeliveryCount()
        Returns the optional DeliveryCount field.
        Returns:
        DeliveryCount
      • setDeliveryCount

        public void setDeliveryCount​(AMQPUnsignedInt deliveryCount)
        Sets the optional DeliveryCount field.
        Parameters:
        deliveryCount - DeliveryCount
      • getPredictedSize

        public int getPredictedSize()
        Returns the predicted size of this Header. The predicted size may be greater than the actual size but it can never be less.
        Specified by:
        getPredictedSize in interface SectionIF
        Overrides:
        getPredictedSize in class AMQPList
        Returns:
        predicted size
      • getArrayConstructor

        public AMQPDescribedConstructor getArrayConstructor()
                                                     throws java.io.IOException
        Returns an array constructor (internal use)
        Returns:
        array constructor
        Throws:
        java.io.IOException
      • 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 AMQPList
        Parameters:
        out - DataOutput
        Throws:
        java.io.IOException - on error
      • getValueString

        public java.lang.String getValueString()
        Description copied from class: AMQPType
        Returns the value string representation of the type.
        Specified by:
        getValueString in interface SectionIF
        Overrides:
        getValueString in class AMQPList
        Returns:
        value string
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class AMQPList