Package | Description |
---|---|
io.openmessaging.message |
Modifier and Type | Method and Description |
---|---|
Header |
Message.header()
Returns all the system header fields of the
Message object as a KeyValue . |
Header |
Header.setBornHost(String bornHost)
The
BORN_HOST header field contains the born host info of a message in client side. |
Header |
Header.setBornTimestamp(long bornTimestamp)
The
BORN_TIMESTAMP header field contains the time a message was handed off to a Producer to be
sent. |
Header |
Header.setCompression(short compression)
The field
COMPRESSION in headers represents the message body compress algorithm. |
Header |
Header.setDeliveryCount(int deliveryCount)
The
DELIVERY_COUNT header field contains a number, which represents the count of the message delivery. |
Header |
Header.setDestination(String destination)
The
DESTINATION header field contains the destination to which the message is being sent. |
Header |
Header.setDurability(short durability)
The
DURABILITY header field contains the persistent level of a message, the vendor should guarantee the
reliability level for a message. |
Header |
Header.setMessageId(String messageId)
The
MESSAGE_ID header field contains a value that uniquely identify each message sent by a Producer . |
Header |
Header.setPriority(short priority)
The
PRIORITY header field contains the priority level of a message, a message with a higher priority
value should be delivered preferentially. |
Copyright © 2017–2020 OpenMessaging. All rights reserved.