Class Header
- java.lang.Object
-
- org.apache.qpid.protonj2.types.messaging.Header
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.qpid.protonj2.types.messaging.Section
Section.SectionType
-
-
Field Summary
Fields Modifier and Type Field Description static long
DEFAULT_DELIVERY_COUNT
static boolean
DEFAULT_DURABILITY
static boolean
DEFAULT_FIRST_ACQUIRER
static byte
DEFAULT_PRIORITY
static long
DEFAULT_TIME_TO_LIVE
static UnsignedLong
DESCRIPTOR_CODE
static Symbol
DESCRIPTOR_SYMBOL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Header
clearDeliveryCount()
Header
clearDurable()
Header
clearFirstAcquirer()
Header
clearPriority()
Header
clearTimeToLive()
Header
copy()
long
getDeliveryCount()
int
getElementCount()
byte
getPriority()
long
getTimeToLive()
Section.SectionType
getType()
Header
getValue()
boolean
hasDeliveryCount()
boolean
hasDurable()
boolean
hasFirstAcquirer()
boolean
hasPriority()
boolean
hasTimeToLive()
boolean
isDurable()
boolean
isEmpty()
boolean
isFirstAcquirer()
Header
reset()
Header
setDeliveryCount(int value)
Header
setDeliveryCount(long value)
Header
setDurable(boolean value)
Header
setFirstAcquirer(boolean value)
Header
setPriority(byte value)
Header
setTimeToLive(int value)
Header
setTimeToLive(long value)
String
toString()
-
-
-
Field Detail
-
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:
- Constant Field Values
-
DEFAULT_PRIORITY
public static final byte DEFAULT_PRIORITY
- See Also:
- Constant Field Values
-
DEFAULT_TIME_TO_LIVE
public static final long DEFAULT_TIME_TO_LIVE
-
DEFAULT_FIRST_ACQUIRER
public static final boolean DEFAULT_FIRST_ACQUIRER
- See Also:
- Constant Field Values
-
DEFAULT_DELIVERY_COUNT
public static final long DEFAULT_DELIVERY_COUNT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Header
public Header()
-
Header
public Header(Header other)
-
-
Method Detail
-
copy
public Header copy()
-
getValue
public Header getValue()
-
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()
-
getType
public Section.SectionType getType()
- Specified by:
getType
in interfaceSection<Header>
- Returns:
- the
Section.SectionType
that describes this instance.
-
-