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 longDEFAULT_DELIVERY_COUNTstatic booleanDEFAULT_DURABILITYstatic booleanDEFAULT_FIRST_ACQUIRERstatic byteDEFAULT_PRIORITYstatic longDEFAULT_TIME_TO_LIVEstatic UnsignedLongDESCRIPTOR_CODEstatic SymbolDESCRIPTOR_SYMBOL
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeaderclearDeliveryCount()HeaderclearDurable()HeaderclearFirstAcquirer()HeaderclearPriority()HeaderclearTimeToLive()Headercopy()longgetDeliveryCount()intgetElementCount()bytegetPriority()longgetTimeToLive()Section.SectionTypegetType()HeadergetValue()booleanhasDeliveryCount()booleanhasDurable()booleanhasFirstAcquirer()booleanhasPriority()booleanhasTimeToLive()booleanisDurable()booleanisEmpty()booleanisFirstAcquirer()Headerreset()HeadersetDeliveryCount(int value)HeadersetDeliveryCount(long value)HeadersetDurable(boolean value)HeadersetFirstAcquirer(boolean value)HeadersetPriority(byte value)HeadersetTimeToLive(int value)HeadersetTimeToLive(long value)StringtoString()
-
-
-
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:
getTypein interfaceSection<Header>- Returns:
- the
Section.SectionTypethat describes this instance.
-
-