java.lang.Object
com.swiftmq.amqp.v100.types.AMQPType
com.swiftmq.amqp.v100.types.AMQPList
com.swiftmq.amqp.v100.generated.messaging.message_format.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
  • Field Details

  • Constructor Details

    • Header

      public Header(List initValue) throws Exception
      Constructs a Header.
      Parameters:
      initValue - initial value
    • Header

      public Header()
      Constructs a Header.
  • Method Details

    • 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 IOException
      Returns an array constructor (internal use)
      Returns:
      array constructor
      Throws:
      IOException
    • writeContent

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

      public 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 String toString()
      Overrides:
      toString in class AMQPList