public static interface SubscribeToShardEvent.Builder extends SdkPojo, CopyableBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>
Modifier and Type | Method and Description |
---|---|
SubscribeToShardEvent.Builder |
childShards(ChildShard... childShards)
Sets the value of the ChildShards property for this object.
|
SubscribeToShardEvent.Builder |
childShards(Collection<ChildShard> childShards)
Sets the value of the ChildShards property for this object.
|
SubscribeToShardEvent.Builder |
childShards(Consumer<ChildShard.Builder>... childShards)
Sets the value of the ChildShards property for this object.
|
SubscribeToShardEvent.Builder |
continuationSequenceNumber(String continuationSequenceNumber)
Use this as
SequenceNumber in the next call to SubscribeToShard, with
StartingPosition set to AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER . |
SubscribeToShardEvent.Builder |
millisBehindLatest(Long millisBehindLatest)
The number of milliseconds the read records are from the tip of the stream, indicating how far behind current
time the consumer is.
|
SubscribeToShardEvent.Builder |
records(Collection<Record> records)
|
SubscribeToShardEvent.Builder |
records(Consumer<Record.Builder>... records)
This is a convenience that creates an instance of the
List avoiding the need to
create one manually via List . |
SubscribeToShardEvent.Builder |
records(Record... records)
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
SubscribeToShardEvent.Builder records(Collection<Record> records)
records
- SubscribeToShardEvent.Builder records(Record... records)
records
- SubscribeToShardEvent.Builder records(Consumer<Record.Builder>... records)
List.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)
SubscribeToShardEvent.Builder continuationSequenceNumber(String continuationSequenceNumber)
Use this as SequenceNumber
in the next call to SubscribeToShard, with
StartingPosition
set to AT_SEQUENCE_NUMBER
or AFTER_SEQUENCE_NUMBER
.
Use ContinuationSequenceNumber
for checkpointing because it captures your shard progress even
when no data is written to the shard.
continuationSequenceNumber
- Use this as SequenceNumber
in the next call to SubscribeToShard, with
StartingPosition
set to AT_SEQUENCE_NUMBER
or
AFTER_SEQUENCE_NUMBER
. Use ContinuationSequenceNumber
for checkpointing
because it captures your shard progress even when no data is written to the shard.SubscribeToShardEvent.Builder millisBehindLatest(Long millisBehindLatest)
The number of milliseconds the read records are 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 read records are 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.SubscribeToShardEvent.Builder childShards(Collection<ChildShard> childShards)
childShards
- The new value for the ChildShards property for this object.SubscribeToShardEvent.Builder childShards(ChildShard... childShards)
childShards
- The new value for the ChildShards property for this object.SubscribeToShardEvent.Builder childShards(Consumer<ChildShard.Builder>... childShards)
List.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 #childShards(List)
.childShards
- a consumer that will call methods on List.Builder
#childShards(List)
Copyright © 2020. All rights reserved.