@Generated(value="OracleSDKGenerator", comments="API Version: 20180418") public final class PutMessagesResult extends Object
The response to a putMessages
request. It indicates the number
of failed messages as well as an array of results for successful and failed messages.
PutMessagesResult.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the PutMessagesResult.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).Modifier and Type | Class and Description |
---|---|
static class |
PutMessagesResult.Builder |
Constructor and Description |
---|
PutMessagesResult(Integer failures,
List<PutMessagesResultEntry> entries)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PutMessagesResult.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
List<PutMessagesResultEntry> |
getEntries()
An array of items representing the result of each message.
|
Integer |
getFailures()
The number of messages that failed to be added to the stream.
|
int |
hashCode() |
PutMessagesResult.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"failures","entries"}) @Deprecated public PutMessagesResult(Integer failures, List<PutMessagesResultEntry> entries)
public static PutMessagesResult.Builder builder()
Create a new builder.
public PutMessagesResult.Builder toBuilder()
public Integer getFailures()
The number of messages that failed to be added to the stream.
public List<PutMessagesResultEntry> getEntries()
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
.
Copyright © 2016–2022. All rights reserved.