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
Record.Builder avoiding the need to create one manually
via Record.builder() . |
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)
Record.Builder
avoiding the need to create one manually
via Record.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and its
result is passed to #records(List
.
records
- a consumer that will call methods on
Record.Builder
#records(java.util.Collection)
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 theChildShard.Builder
avoiding the need to create one
manually via ChildShard.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called immediately and
its result is passed to #childShards(List
.
childShards
- a consumer that will call methods on
ChildShard.Builder
#childShards(java.util.Collection)
Copyright © 2023. All rights reserved.