public static class PutMessagesResult.Builder extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PutMessagesResult |
build() |
PutMessagesResult.Builder |
copy(PutMessagesResult model) |
PutMessagesResult.Builder |
entries(List<PutMessagesResultEntry> entries)
An array of items representing the result of each message.
|
PutMessagesResult.Builder |
failures(Integer failures)
The number of messages that failed to be added to the stream.
|
public PutMessagesResult.Builder failures(Integer failures)
The number of messages that failed to be added to the stream.
failures - the value to setpublic PutMessagesResult.Builder entries(List<PutMessagesResultEntry> entries)
An array of items representing the result of each message. The order is guaranteed to be
the same as in the PutMessagesDetails object. If a message was successfully
appended to the stream, the entry includes the offset, partition, and
timestamp. If a message failed to be appended to the stream, the entry includes
the error and errorMessage.
entries - the value to setpublic PutMessagesResult build()
public PutMessagesResult.Builder copy(PutMessagesResult model)
Copyright © 2016–2022. All rights reserved.