Package com.rabbitmq.stream
Interface MessageBuilder.PropertiesBuilder
-
- Enclosing interface:
- MessageBuilder
public static interface MessageBuilder.PropertiesBuilder
API to set message properties.- See Also:
Message.getProperties()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MessageBuilder.PropertiesBuilder
absoluteExpiryTime(long absoluteExpiryTime)
Set the expiry time.MessageBuilder.PropertiesBuilder
contentEncoding(String contentEncoding)
Set the content encoding.MessageBuilder.PropertiesBuilder
contentType(String contentType)
Set the content type.MessageBuilder.PropertiesBuilder
correlationId(byte[] correlationId)
Set the correlation ID as an array of bytes.MessageBuilder.PropertiesBuilder
correlationId(long correlationId)
Set the correlation ID as a long.MessageBuilder.PropertiesBuilder
correlationId(String correlationId)
Set the correlation ID as a string.MessageBuilder.PropertiesBuilder
correlationId(UUID correlationId)
Set the correlation ID as an UUID.MessageBuilder.PropertiesBuilder
creationTime(long creationTime)
Set the creation time.MessageBuilder.PropertiesBuilder
groupId(String groupId)
Set the group ID.MessageBuilder.PropertiesBuilder
groupSequence(long groupSequence)
Set the group sequence.MessageBuilder
messageBuilder()
Go back to the message builder.MessageBuilder.PropertiesBuilder
messageId(byte[] id)
Set the message ID as an array of bytes.MessageBuilder.PropertiesBuilder
messageId(long id)
Set the message ID as long.MessageBuilder.PropertiesBuilder
messageId(String id)
Set the message ID as a string.MessageBuilder.PropertiesBuilder
messageId(UUID id)
Set the message ID as an UUID.MessageBuilder.PropertiesBuilder
replyTo(String replyTo)
Set the reply to address.MessageBuilder.PropertiesBuilder
replyToGroupId(String replyToGroupId)
Set the reply-to group ID.MessageBuilder.PropertiesBuilder
subject(String subject)
Set the subject.MessageBuilder.PropertiesBuilder
to(String address)
Set the to address.MessageBuilder.PropertiesBuilder
userId(byte[] userId)
Set the user ID.
-
-
-
Method Detail
-
messageId
MessageBuilder.PropertiesBuilder messageId(String id)
Set the message ID as a string.- Parameters:
id
-- Returns:
- this properties builder
-
messageId
MessageBuilder.PropertiesBuilder messageId(long id)
Set the message ID as long.- Parameters:
id
-- Returns:
- this properties builder
-
messageId
MessageBuilder.PropertiesBuilder messageId(byte[] id)
Set the message ID as an array of bytes.- Parameters:
id
-- Returns:
- this properties builder
-
messageId
MessageBuilder.PropertiesBuilder messageId(UUID id)
Set the message ID as an UUID.- Parameters:
id
-- Returns:
- this properties builder
-
userId
MessageBuilder.PropertiesBuilder userId(byte[] userId)
Set the user ID.- Parameters:
userId
-- Returns:
- this properties builder
-
to
MessageBuilder.PropertiesBuilder to(String address)
Set the to address.- Parameters:
address
-- Returns:
- this properties builder
-
subject
MessageBuilder.PropertiesBuilder subject(String subject)
Set the subject.- Parameters:
subject
-- Returns:
- this properties builder
-
replyTo
MessageBuilder.PropertiesBuilder replyTo(String replyTo)
Set the reply to address.- Parameters:
replyTo
-- Returns:
- this properties builder
-
correlationId
MessageBuilder.PropertiesBuilder correlationId(String correlationId)
Set the correlation ID as a string.- Parameters:
correlationId
-- Returns:
- this properties builder
-
correlationId
MessageBuilder.PropertiesBuilder correlationId(long correlationId)
Set the correlation ID as a long.- Parameters:
correlationId
-- Returns:
- this properties builder
-
correlationId
MessageBuilder.PropertiesBuilder correlationId(byte[] correlationId)
Set the correlation ID as an array of bytes.- Parameters:
correlationId
-- Returns:
- this properties builder
-
correlationId
MessageBuilder.PropertiesBuilder correlationId(UUID correlationId)
Set the correlation ID as an UUID.- Parameters:
correlationId
-- Returns:
- this properties builder
-
contentType
MessageBuilder.PropertiesBuilder contentType(String contentType)
Set the content type.- Parameters:
contentType
-- Returns:
- this properties builder
-
contentEncoding
MessageBuilder.PropertiesBuilder contentEncoding(String contentEncoding)
Set the content encoding.- Parameters:
contentEncoding
-- Returns:
- this properties builder
-
absoluteExpiryTime
MessageBuilder.PropertiesBuilder absoluteExpiryTime(long absoluteExpiryTime)
Set the expiry time.- Parameters:
absoluteExpiryTime
-- Returns:
- this properties builder
-
creationTime
MessageBuilder.PropertiesBuilder creationTime(long creationTime)
Set the creation time.- Parameters:
creationTime
-- Returns:
- this properties builder
-
groupId
MessageBuilder.PropertiesBuilder groupId(String groupId)
Set the group ID.- Parameters:
groupId
-- Returns:
- this properties builder
-
groupSequence
MessageBuilder.PropertiesBuilder groupSequence(long groupSequence)
Set the group sequence.- Parameters:
groupSequence
-- Returns:
- this properties builder
-
replyToGroupId
MessageBuilder.PropertiesBuilder replyToGroupId(String replyToGroupId)
Set the reply-to group ID.- Parameters:
replyToGroupId
-- Returns:
- this properties builder
-
messageBuilder
MessageBuilder messageBuilder()
Go back to the message builder.- Returns:
- the message builder
-
-