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
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 Summary
Fields Modifier and Type Field Description AMQPDescribedConstructor
codeConstructor
static long
DESCRIPTOR_CODE
static java.lang.String
DESCRIPTOR_NAME
AMQPDescribedConstructor
nameConstructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SectionVisitor visitor)
Accept method for a Section visitor.AMQPDescribedConstructor
getArrayConstructor()
Returns an array constructor (internal use)AMQPUnsignedInt
getDeliveryCount()
Returns the optional DeliveryCount field.AMQPBoolean
getDurable()
Returns the optional Durable field.AMQPBoolean
getFirstAcquirer()
Returns the optional FirstAcquirer field.int
getPredictedSize()
Returns the predicted size of this Header.AMQPUnsignedByte
getPriority()
Returns the optional Priority field.Milliseconds
getTtl()
Returns the optional Ttl field.java.lang.String
getValueString()
Returns the value string representation of the type.boolean
hasDescriptor()
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.java.lang.String
toString()
void
writeContent(java.io.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 Detail
-
DESCRIPTOR_NAME
public static java.lang.String DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE
-
codeConstructor
public AMQPDescribedConstructor codeConstructor
-
nameConstructor
public AMQPDescribedConstructor nameConstructor
-
-
Method Detail
-
hasDescriptor
public boolean hasDescriptor()
Return whether this Header has a descriptor- Overrides:
hasDescriptor
in classAMQPType
- Returns:
- true/false
-
accept
public void accept(SectionVisitor visitor)
Accept method for a 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 interfaceSectionIF
- Overrides:
getPredictedSize
in classAMQPList
- Returns:
- predicted size
-
getArrayConstructor
public AMQPDescribedConstructor getArrayConstructor() throws java.io.IOException
Returns an array constructor (internal use)- Returns:
- array constructor
- Throws:
java.io.IOException
-
writeContent
public void writeContent(java.io.DataOutput out) throws java.io.IOException
Description copied from class:AMQPType
Write the content of this type to a DataOutput.- Overrides:
writeContent
in classAMQPList
- Parameters:
out
- DataOutput- Throws:
java.io.IOException
- on error
-
getValueString
public java.lang.String 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
-
-