Class PutRecordsResult
- All Implemented Interfaces:
Serializable, Cloneable
PutRecords results.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe number of unsuccessfully processed records in aPutRecordsrequest.An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering.inthashCode()voidsetFailedRecordCount(Integer failedRecordCount) The number of unsuccessfully processed records in aPutRecordsrequest.voidsetRecords(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 aPutRecordsrequest.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
PutRecordsrequest.- Parameters:
failedRecordCount- The number of unsuccessfully processed records in aPutRecordsrequest.
-
getFailedRecordCount
The number of unsuccessfully processed records in a
PutRecordsrequest.- Returns:
- The number of unsuccessfully processed records in a
PutRecordsrequest.
-
withFailedRecordCount
The number of unsuccessfully processed records in a
PutRecordsrequest.- Parameters:
failedRecordCount- The number of unsuccessfully processed records in aPutRecordsrequest.- 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
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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 includesSequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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 includesSequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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 includesSequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-