Package com.rabbitmq.stream.codec
Class WrapperMessageBuilder
java.lang.Object
com.rabbitmq.stream.codec.WrapperMessageBuilder
- All Implemented Interfaces:
MessageBuilder
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.rabbitmq.stream.MessageBuilder
MessageBuilder.ApplicationPropertiesBuilder, MessageBuilder.MessageAnnotationsBuilder, MessageBuilder.PropertiesBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddData
(byte[] data) Set binary data of the message.The builder to set application properties.build()
Create the message.The builder to set message annotations.The builder forProperties
.publishingId
(long publishingId) Set the publishing ID (for de-duplication).
-
Constructor Details
-
WrapperMessageBuilder
public WrapperMessageBuilder()
-
-
Method Details
-
build
Description copied from interface:MessageBuilder
Create the message.- Specified by:
build
in interfaceMessageBuilder
- Returns:
- the message
-
publishingId
Description copied from interface:MessageBuilder
Set the publishing ID (for de-duplication).This is value is used only for outbound messages and is not persisted.
- Specified by:
publishingId
in interfaceMessageBuilder
- Parameters:
publishingId
-- Returns:
- this builder instance
-
properties
Description copied from interface:MessageBuilder
The builder forProperties
.- Specified by:
properties
in interfaceMessageBuilder
- Returns:
- the properties builder
- See Also:
-
applicationProperties
Description copied from interface:MessageBuilder
The builder to set application properties.- Specified by:
applicationProperties
in interfaceMessageBuilder
- Returns:
- the application properties builder
- See Also:
-
messageAnnotations
Description copied from interface:MessageBuilder
The builder to set message annotations.- Specified by:
messageAnnotations
in interfaceMessageBuilder
- Returns:
- the message annotations builder
- See Also:
-
addData
Description copied from interface:MessageBuilder
Set binary data of the message.- Specified by:
addData
in interfaceMessageBuilder
- Parameters:
data
-- Returns:
- this builder instance
- See Also:
-