Package com.oracle.bmc.streaming.model
Class Message.Builder
- java.lang.Object
-
- com.oracle.bmc.streaming.model.Message.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
stream
public Message.Builder stream(String stream)
The name of the stream that the message belongs to.- Parameters:
stream
- the value to set- Returns:
- this builder
-
partition
public Message.Builder partition(String partition)
The ID of the partition where the message is stored.- Parameters:
partition
- the value to set- Returns:
- this builder
-
key
public Message.Builder key(byte[] key)
The key associated with the message, expressed as a byte array.- Parameters:
key
- the value to set- Returns:
- this builder
-
value
public Message.Builder value(byte[] value)
The value associated with the message, expressed as a byte array.- Parameters:
value
- the value to set- Returns:
- this builder
-
offset
public Message.Builder offset(Long offset)
The offset of the message, which uniquely identifies it within the partition.- Parameters:
offset
- the value to set- Returns:
- this builder
-
timestamp
public Message.Builder timestamp(Date timestamp)
The timestamp indicating when the server appended the message to the stream.- Parameters:
timestamp
- the value to set- Returns:
- this builder
-
build
public Message build()
-
copy
public Message.Builder copy(Message model)
-
-