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
Constructors -
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 deduplication).
-
Constructor Details
-
WrapperMessageBuilder
public WrapperMessageBuilder()
-
-
Method Details
-
build
Description copied from interface:MessageBuilderCreate the message.- Specified by:
buildin interfaceMessageBuilder- Returns:
- the message
-
publishingId
Description copied from interface:MessageBuilderSet the publishing ID (for deduplication).This is value is used only for outbound messages and is not persisted.
- Specified by:
publishingIdin interfaceMessageBuilder- Parameters:
publishingId-- Returns:
- this builder instance
- See Also:
-
properties
Description copied from interface:MessageBuilderThe builder forProperties.- Specified by:
propertiesin interfaceMessageBuilder- Returns:
- the properties builder
- See Also:
-
applicationProperties
Description copied from interface:MessageBuilderThe builder to set application properties.- Specified by:
applicationPropertiesin interfaceMessageBuilder- Returns:
- the application properties builder
- See Also:
-
messageAnnotations
Description copied from interface:MessageBuilderThe builder to set message annotations.- Specified by:
messageAnnotationsin interfaceMessageBuilder- Returns:
- the message annotations builder
- See Also:
-
addData
Description copied from interface:MessageBuilderSet binary data of the message.- Specified by:
addDatain interfaceMessageBuilder- Parameters:
data-- Returns:
- this builder instance
- See Also:
-