Class Header
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
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SectionVisitor visitor) Accept method for a Section visitor.Returns an array constructor (internal use)Returns the optional DeliveryCount field.Returns the optional Durable field.Returns the optional FirstAcquirer field.int
Returns the predicted size of this Header.Returns the optional Priority field.getTtl()
Returns the optional Ttl field.Returns the value string representation of the type.boolean
Return whether this Header has a descriptorvoid
setDeliveryCount
(AMQPUnsignedInt deliveryCount) Sets the optional DeliveryCount field.void
setDurable
(AMQPBoolean durable) Sets the optional Durable field.void
setFirstAcquirer
(AMQPBoolean firstAcquirer) Sets the optional FirstAcquirer field.void
setPriority
(AMQPUnsignedByte priority) Sets the optional Priority field.void
setTtl
(Milliseconds ttl) Sets the optional Ttl field.toString()
void
writeContent
(DataOutput out) Write the content of this type to a DataOutput.Methods inherited from class com.swiftmq.amqp.v100.types.AMQPList
getValue, readContent, setValue
Methods inherited from class com.swiftmq.amqp.v100.types.AMQPType
getCode, getConstructor, getName, isWriteCode, resetConstructor, setCode, setConstructor, setWriteCode
-
Field Details
-
DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE -
codeConstructor
-
nameConstructor
-
-
Constructor Details
-
Header
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 classAMQPType
- Returns:
- true/false
-
accept
Accept method for a Section visitor. -
getDurable
Returns the optional Durable field.- Returns:
- Durable
-
setDurable
Sets the optional Durable field.- Parameters:
durable
- Durable
-
getPriority
Returns the optional Priority field.- Returns:
- Priority
-
setPriority
Sets the optional Priority field.- Parameters:
priority
- Priority
-
getTtl
Returns the optional Ttl field.- Returns:
- Ttl
-
setTtl
Sets the optional Ttl field.- Parameters:
ttl
- Ttl
-
getFirstAcquirer
Returns the optional FirstAcquirer field.- Returns:
- FirstAcquirer
-
setFirstAcquirer
Sets the optional FirstAcquirer field.- Parameters:
firstAcquirer
- FirstAcquirer
-
getDeliveryCount
Returns the optional DeliveryCount field.- Returns:
- DeliveryCount
-
setDeliveryCount
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 interfaceSectionIF
- Overrides:
getPredictedSize
in classAMQPList
- Returns:
- predicted size
-
getArrayConstructor
Returns an array constructor (internal use)- Returns:
- array constructor
- Throws:
IOException
-
writeContent
Description copied from class:AMQPType
Write the content of this type to a DataOutput.- Overrides:
writeContent
in classAMQPList
- Parameters:
out
- DataOutput- Throws:
IOException
- on error
-
getValueString
Description copied from class:AMQPType
Returns the value string representation of the type.- Specified by:
getValueString
in interfaceSectionIF
- Overrides:
getValueString
in classAMQPList
- Returns:
- value string
-
toString
-