public static interface SubscribeToShardEvent.Builder extends SdkPojo, CopyableBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>
Modifier and Type | Method and Description |
---|---|
SubscribeToShardEvent.Builder |
childShards(ChildShard... childShards)
The list of the child shards of the current shard, returned only at the end of the current shard.
|
SubscribeToShardEvent.Builder |
childShards(Collection<ChildShard> childShards)
The list of the child shards of the current shard, returned only at the end of the current shard.
|
SubscribeToShardEvent.Builder |
childShards(Consumer<ChildShard.Builder>... childShards)
The list of the child shards of the current shard, returned only at the end of the current shard.
|
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 method 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)
The list of the child shards of the current shard, returned only at the end of the current shard.
childShards
- The list of the child shards of the current shard, returned only at the end of the current shard.SubscribeToShardEvent.Builder childShards(ChildShard... childShards)
The list of the child shards of the current shard, returned only at the end of the current shard.
childShards
- The list of the child shards of the current shard, returned only at the end of the current shard.SubscribeToShardEvent.Builder childShards(Consumer<ChildShard.Builder>... childShards)
The list of the child shards of the current shard, returned only at the end of the current shard.
This is a convenience method 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 #childShards(List)
.childShards
- a consumer that will call methods on List.Builder
#childShards(List)
Copyright © 2022. All rights reserved.