java.lang.Object
org.apache.qpid.protonj2.types.messaging.Header
All Implemented Interfaces:
Section<Header>

public final class Header extends Object implements Section<Header>
  • Field Details

    • DESCRIPTOR_CODE

      public static final UnsignedLong DESCRIPTOR_CODE
    • DESCRIPTOR_SYMBOL

      public static final Symbol DESCRIPTOR_SYMBOL
    • DEFAULT_DURABILITY

      public static final boolean DEFAULT_DURABILITY
      See Also:
    • DEFAULT_PRIORITY

      public static final byte DEFAULT_PRIORITY
      See Also:
    • DEFAULT_TIME_TO_LIVE

      public static final long DEFAULT_TIME_TO_LIVE
    • DEFAULT_FIRST_ACQUIRER

      public static final boolean DEFAULT_FIRST_ACQUIRER
      See Also:
    • DEFAULT_DELIVERY_COUNT

      public static final long DEFAULT_DELIVERY_COUNT
      See Also:
  • Constructor Details

    • Header

      public Header()
    • Header

      public Header(Header other)
  • Method Details

    • copy

      public Header copy()
    • getValue

      public Header getValue()
      Specified by:
      getValue in interface Section<Header>
      Returns:
      the Object value contained within the given message Section.
    • isEmpty

      public boolean isEmpty()
    • getElementCount

      public int getElementCount()
    • hasDurable

      public boolean hasDurable()
    • hasPriority

      public boolean hasPriority()
    • hasTimeToLive

      public boolean hasTimeToLive()
    • hasFirstAcquirer

      public boolean hasFirstAcquirer()
    • hasDeliveryCount

      public boolean hasDeliveryCount()
    • isDurable

      public boolean isDurable()
    • setDurable

      public Header setDurable(boolean value)
    • clearDurable

      public Header clearDurable()
    • getPriority

      public byte getPriority()
    • setPriority

      public Header setPriority(byte value)
    • clearPriority

      public Header clearPriority()
    • getTimeToLive

      public long getTimeToLive()
    • setTimeToLive

      public Header setTimeToLive(int value)
    • setTimeToLive

      public Header setTimeToLive(long value)
    • clearTimeToLive

      public Header clearTimeToLive()
    • isFirstAcquirer

      public boolean isFirstAcquirer()
    • setFirstAcquirer

      public Header setFirstAcquirer(boolean value)
    • clearFirstAcquirer

      public Header clearFirstAcquirer()
    • getDeliveryCount

      public long getDeliveryCount()
    • setDeliveryCount

      public Header setDeliveryCount(int value)
    • setDeliveryCount

      public Header setDeliveryCount(long value)
    • clearDeliveryCount

      public Header clearDeliveryCount()
    • reset

      public Header reset()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getType

      public Section.SectionType getType()
      Specified by:
      getType in interface Section<Header>
      Returns:
      the Section.SectionType that describes this instance.