Class PutMessagesResult.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • failures

        public PutMessagesResult.Builder failures​(Integer failures)
        The number of messages that failed to be added to the stream.
        Parameters:
        failures - the value to set
        Returns:
        this builder
      • entries

        public 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.

        Parameters:
        entries - the value to set
        Returns:
        this builder