public static interface GetRecordsResponse.Builder extends KinesisResponse.Builder, SdkPojo, CopyableBuilder<GetRecordsResponse.Builder,GetRecordsResponse>
Modifier and Type | Method and 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(Consumer<Record.Builder>... records)
The data records retrieved from the shard.
|
GetRecordsResponse.Builder |
records(Record... records)
The data records retrieved from the shard.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
equalsBySdkFields, sdkFields
copy
applyMutation, 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.
records
- The data records retrieved from the shard.GetRecordsResponse.Builder records(Consumer<Record.Builder>... records)
The data records retrieved from the shard.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #records(List)
.records
- a consumer that will call methods on List.Builder
#records(List)
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 does 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 does 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 that 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 that record processing is
caught up, and there are no new records to process at this moment.Copyright © 2020. All rights reserved.