Interface SubscribeToShardEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>,SdkBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>,SdkPojo
- All Known Implementing Classes:
SubscribeToShardEvent.BuilderImpl
- Enclosing class:
- SubscribeToShardEvent
public static interface SubscribeToShardEvent.Builder extends SdkPojo, CopyableBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SubscribeToShardEvent.BuilderchildShards(Collection<ChildShard> childShards)The list of the child shards of the current shard, returned only at the end of the current shard.SubscribeToShardEvent.BuilderchildShards(Consumer<ChildShard.Builder>... childShards)The list of the child shards of the current shard, returned only at the end of the current shard.SubscribeToShardEvent.BuilderchildShards(ChildShard... childShards)The list of the child shards of the current shard, returned only at the end of the current shard.SubscribeToShardEvent.BuildercontinuationSequenceNumber(String continuationSequenceNumber)Use this asSequenceNumberin the next call to SubscribeToShard, withStartingPositionset toAT_SEQUENCE_NUMBERorAFTER_SEQUENCE_NUMBER.SubscribeToShardEvent.BuildermillisBehindLatest(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.Builderrecords(Collection<Record> records)SubscribeToShardEvent.Builderrecords(Consumer<Record.Builder>... records)This is a convenience method that creates an instance of theRecord.Builderavoiding the need to create one manually viaRecord.builder().SubscribeToShardEvent.Builderrecords(Record... records)-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
records
SubscribeToShardEvent.Builder records(Collection<Record> records)
- Parameters:
records-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
SubscribeToShardEvent.Builder records(Record... records)
- Parameters:
records-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
SubscribeToShardEvent.Builder records(Consumer<Record.Builder>... records)
This is a convenience method that creates an instance of theRecord.Builderavoiding the need to create one manually viaRecord.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#records(List.) - Parameters:
records- a consumer that will call methods onRecord.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#records(java.util.Collection)
-
continuationSequenceNumber
SubscribeToShardEvent.Builder continuationSequenceNumber(String continuationSequenceNumber)
Use this as
SequenceNumberin the next call to SubscribeToShard, withStartingPositionset toAT_SEQUENCE_NUMBERorAFTER_SEQUENCE_NUMBER. UseContinuationSequenceNumberfor checkpointing because it captures your shard progress even when no data is written to the shard.- Parameters:
continuationSequenceNumber- Use this asSequenceNumberin the next call to SubscribeToShard, withStartingPositionset toAT_SEQUENCE_NUMBERorAFTER_SEQUENCE_NUMBER. UseContinuationSequenceNumberfor checkpointing because it captures your shard progress even when no data is written to the shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
millisBehindLatest
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
childShards
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.
- Parameters:
childShards- The list of the child shards of the current shard, returned only at the end of the current shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
childShards
SubscribeToShardEvent.Builder childShards(ChildShard... childShards)
The list of the child shards of the current shard, returned only at the end of the current shard.
- Parameters:
childShards- The list of the child shards of the current shard, returned only at the end of the current shard.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
childShards
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.Builderavoiding the need to create one manually viaChildShard.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#childShards(List.) - Parameters:
childShards- a consumer that will call methods onChildShard.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#childShards(java.util.Collection)
-
-