CopyableBuilder<GetRecordsResponse.Builder,GetRecordsResponse>
, SdkBuilder<GetRecordsResponse.Builder,GetRecordsResponse>
public static interface GetRecordsResponse.Builder extends CopyableBuilder<GetRecordsResponse.Builder,GetRecordsResponse>
Modifier and Type | Method | Description |
---|---|---|
GetRecordsResponse.Builder |
millisBehindLatest(Long millisBehindLatest) |
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far
behind current time the consumer is.
|
GetRecordsResponse.Builder |
nextShardIterator(String nextShardIterator) |
The next position in the shard from which to start sequentially reading data records.
|
GetRecordsResponse.Builder |
records(Collection<Record> records) |
The data records retrieved from the shard.
|
GetRecordsResponse.Builder |
records(Record... records) |
The data records retrieved from the shard.
|
copy
apply, build
GetRecordsResponse.Builder records(Collection<Record> records)
The data records retrieved from the shard.
records
- The data records retrieved from the shard.GetRecordsResponse.Builder records(Record... records)
The data records retrieved from the shard.
NOTE: This method appends the values to the existing list (if any). Use
#setRecords(java.util.Collection)
or #withRecords(java.util.Collection)
if you want to
override the existing values.
records
- The data records retrieved from the shard.GetRecordsResponse.Builder nextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading data records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.
nextShardIterator
- The next position in the shard from which to start sequentially reading data records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.GetRecordsResponse.Builder millisBehindLatest(Long millisBehindLatest)
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates record processing is caught up, and there are no new records to process at this moment.
millisBehindLatest
- The number of milliseconds the GetRecords response is from the tip of the stream, indicating
how far behind current time the consumer is. A value of zero indicates record processing is caught up,
and there are no new records to process at this moment.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.