Class PutRecordsResult
- All Implemented Interfaces:
Serializable
,Cloneable
PutRecords
results.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The number of unsuccessfully processed records in aPutRecords
request.An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering.int
hashCode()
void
setFailedRecordCount
(Integer failedRecordCount) The number of unsuccessfully processed records in aPutRecords
request.void
setRecords
(Collection<PutRecordsResultEntry> records) An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering.toString()
Returns a string representation of this object; useful for testing and debugging.withFailedRecordCount
(Integer failedRecordCount) The number of unsuccessfully processed records in aPutRecords
request.withRecords
(PutRecordsResultEntry... records) An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering.withRecords
(Collection<PutRecordsResultEntry> records) An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering.
-
Constructor Details
-
PutRecordsResult
public PutRecordsResult()
-
-
Method Details
-
setFailedRecordCount
The number of unsuccessfully processed records in a
PutRecords
request.- Parameters:
failedRecordCount
- The number of unsuccessfully processed records in aPutRecords
request.
-
getFailedRecordCount
The number of unsuccessfully processed records in a
PutRecords
request.- Returns:
- The number of unsuccessfully processed records in a
PutRecords
request.
-
withFailedRecordCount
The number of unsuccessfully processed records in a
PutRecords
request.- Parameters:
failedRecordCount
- The number of unsuccessfully processed records in aPutRecords
request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRecords
An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering. A record that is successfully added to a stream includes
SequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Returns:
- An array of successfully and unsuccessfully processed record
results, correlated with the request by natural ordering. A
record that is successfully added to a stream includes
SequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.
-
setRecords
An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering. A record that is successfully added to a stream includes
SequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Parameters:
records
- An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering. A record that is successfully added to a stream includesSequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.
-
withRecords
An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering. A record that is successfully added to a stream includes
SequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.NOTE: This method appends the values to the existing list (if any). Use
setRecords(java.util.Collection)
orwithRecords(java.util.Collection)
if you want to override the existing values.- Parameters:
records
- An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering. A record that is successfully added to a stream includesSequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRecords
An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering. A record that is successfully added to a stream includes
SequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Parameters:
records
- An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering. A record that is successfully added to a stream includesSequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-