Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Message |
build() |
Message.Builder |
copy(Message model) |
Message.Builder |
key(byte[] key)
The key associated with the message, expressed as a byte array.
|
Message.Builder |
offset(Long offset)
The offset of the message, which uniquely identifies it within the partition.
|
Message.Builder |
partition(String partition)
The ID of the partition where the message is stored.
|
Message.Builder |
stream(String stream)
The name of the stream that the message belongs to.
|
Message.Builder |
timestamp(Date timestamp)
The timestamp indicating when the server appended the message to the stream.
|
Message.Builder |
value(byte[] value)
The value associated with the message, expressed as a byte array.
|
public Message.Builder stream(String stream)
The name of the stream that the message belongs to.
stream
- the value to setpublic Message.Builder partition(String partition)
The ID of the partition where the message is stored.
partition
- the value to setpublic Message.Builder key(byte[] key)
The key associated with the message, expressed as a byte array.
key
- the value to setpublic Message.Builder value(byte[] value)
The value associated with the message, expressed as a byte array.
value
- the value to setpublic Message.Builder offset(Long offset)
The offset of the message, which uniquely identifies it within the partition.
offset
- the value to setpublic Message.Builder timestamp(Date timestamp)
The timestamp indicating when the server appended the message to the stream.
timestamp
- the value to setpublic Message build()
public Message.Builder copy(Message model)
Copyright © 2016–2024. All rights reserved.