Class Properties
java.lang.Object
com.swiftmq.amqp.v100.types.AMQPType
com.swiftmq.amqp.v100.types.AMQPList
com.swiftmq.amqp.v100.generated.messaging.message_format.Properties
- All Implemented Interfaces:
SectionIF
The properties section is used for a defined set of standard properties of the message. The properties section is part of the bare message; therefore, if retransmitted by an intermediary, it MUST remain unaltered.
- 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
ConstructorsConstructorDescriptionConstructs a Properties.Properties
(List initValue) Constructs a Properties. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SectionVisitor visitor) Accept method for a Section visitor.Returns the optional AbsoluteExpiryTime field.Returns an array constructor (internal use)Returns the optional ContentEncoding field.Returns the optional ContentType field.Returns the optional CorrelationId field.Returns the optional CreationTime field.Returns the optional GroupId field.Returns the optional GroupSequence field.Returns the optional MessageId field.int
Returns the predicted size of this Properties.Returns the optional ReplyTo field.Returns the optional ReplyToGroupId field.Returns the optional Subject field.getTo()
Returns the optional To field.Returns the optional UserId field.Returns the value string representation of the type.boolean
Return whether this Properties has a descriptorvoid
setAbsoluteExpiryTime
(AMQPTimestamp absoluteExpiryTime) Sets the optional AbsoluteExpiryTime field.void
setContentEncoding
(AMQPSymbol contentEncoding) Sets the optional ContentEncoding field.void
setContentType
(AMQPSymbol contentType) Sets the optional ContentType field.void
setCorrelationId
(MessageIdIF correlationId) Sets the optional CorrelationId field.void
setCreationTime
(AMQPTimestamp creationTime) Sets the optional CreationTime field.void
setGroupId
(AMQPString groupId) Sets the optional GroupId field.void
setGroupSequence
(SequenceNo groupSequence) Sets the optional GroupSequence field.void
setMessageId
(MessageIdIF messageId) Sets the optional MessageId field.void
setReplyTo
(AddressIF replyTo) Sets the optional ReplyTo field.void
setReplyToGroupId
(AMQPString replyToGroupId) Sets the optional ReplyToGroupId field.void
setSubject
(AMQPString subject) Sets the optional Subject field.void
Sets the optional To field.void
setUserId
(AMQPBinary userId) Sets the optional UserId 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
-
Properties
Constructs a Properties.- Parameters:
initValue
- initial value
-
Properties
public Properties()Constructs a Properties.
-
-
Method Details
-
hasDescriptor
public boolean hasDescriptor()Return whether this Properties has a descriptor- Overrides:
hasDescriptor
in classAMQPType
- Returns:
- true/false
-
accept
Accept method for a Section visitor. -
getMessageId
Returns the optional MessageId field.- Returns:
- MessageId
-
setMessageId
Sets the optional MessageId field.- Parameters:
messageId
- MessageId
-
getUserId
Returns the optional UserId field.- Returns:
- UserId
-
setUserId
Sets the optional UserId field.- Parameters:
userId
- UserId
-
getTo
Returns the optional To field.- Returns:
- To
-
setTo
Sets the optional To field.- Parameters:
to
- To
-
getSubject
Returns the optional Subject field.- Returns:
- Subject
-
setSubject
Sets the optional Subject field.- Parameters:
subject
- Subject
-
getReplyTo
Returns the optional ReplyTo field.- Returns:
- ReplyTo
-
setReplyTo
Sets the optional ReplyTo field.- Parameters:
replyTo
- ReplyTo
-
getCorrelationId
Returns the optional CorrelationId field.- Returns:
- CorrelationId
-
setCorrelationId
Sets the optional CorrelationId field.- Parameters:
correlationId
- CorrelationId
-
getContentType
Returns the optional ContentType field.- Returns:
- ContentType
-
setContentType
Sets the optional ContentType field.- Parameters:
contentType
- ContentType
-
getContentEncoding
Returns the optional ContentEncoding field.- Returns:
- ContentEncoding
-
setContentEncoding
Sets the optional ContentEncoding field.- Parameters:
contentEncoding
- ContentEncoding
-
getAbsoluteExpiryTime
Returns the optional AbsoluteExpiryTime field.- Returns:
- AbsoluteExpiryTime
-
setAbsoluteExpiryTime
Sets the optional AbsoluteExpiryTime field.- Parameters:
absoluteExpiryTime
- AbsoluteExpiryTime
-
getCreationTime
Returns the optional CreationTime field.- Returns:
- CreationTime
-
setCreationTime
Sets the optional CreationTime field.- Parameters:
creationTime
- CreationTime
-
getGroupId
Returns the optional GroupId field.- Returns:
- GroupId
-
setGroupId
Sets the optional GroupId field.- Parameters:
groupId
- GroupId
-
getGroupSequence
Returns the optional GroupSequence field.- Returns:
- GroupSequence
-
setGroupSequence
Sets the optional GroupSequence field.- Parameters:
groupSequence
- GroupSequence
-
getReplyToGroupId
Returns the optional ReplyToGroupId field.- Returns:
- ReplyToGroupId
-
setReplyToGroupId
Sets the optional ReplyToGroupId field.- Parameters:
replyToGroupId
- ReplyToGroupId
-
getPredictedSize
public int getPredictedSize()Returns the predicted size of this Properties. 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
-