protected static class SubscribeToShardEvent.BuilderImpl extends Object implements SubscribeToShardEvent.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
BuilderImpl() |
protected |
BuilderImpl(SubscribeToShardEvent model) |
| Modifier and Type | Method and Description |
|---|---|
SubscribeToShardEvent |
build() |
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. |
List<ChildShard.Builder> |
getChildShards() |
String |
getContinuationSequenceNumber() |
Long |
getMillisBehindLatest() |
List<Record.Builder> |
getRecords() |
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)
|
List<SdkField<?>> |
sdkFields() |
void |
setChildShards(Collection<software.amazon.awssdk.services.kinesis.model.ChildShard.BuilderImpl> childShards) |
void |
setContinuationSequenceNumber(String continuationSequenceNumber) |
void |
setMillisBehindLatest(Long millisBehindLatest) |
void |
setRecords(Collection<software.amazon.awssdk.services.kinesis.model.Record.BuilderImpl> records) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsBySdkFieldscopyapplyMutationprotected BuilderImpl()
protected BuilderImpl(SubscribeToShardEvent model)
public final List<Record.Builder> getRecords()
public final void setRecords(Collection<software.amazon.awssdk.services.kinesis.model.Record.BuilderImpl> records)
public final SubscribeToShardEvent.Builder records(Collection<Record> records)
SubscribeToShardEvent.Builderrecords in interface SubscribeToShardEvent.Builder@SafeVarargs public final SubscribeToShardEvent.Builder records(Record... records)
SubscribeToShardEvent.Builderrecords in interface SubscribeToShardEvent.Builder@SafeVarargs public final SubscribeToShardEvent.Builder records(Consumer<Record.Builder>... records)
SubscribeToShardEvent.BuilderRecord.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 in interface SubscribeToShardEvent.Builderrecords - a consumer that will call methods on
Record.Builder#records(java.util.Collection) public final String getContinuationSequenceNumber()
public final void setContinuationSequenceNumber(String continuationSequenceNumber)
public final SubscribeToShardEvent.Builder continuationSequenceNumber(String continuationSequenceNumber)
SubscribeToShardEvent.Builder
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 in interface SubscribeToShardEvent.BuildercontinuationSequenceNumber - 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.public final Long getMillisBehindLatest()
public final void setMillisBehindLatest(Long millisBehindLatest)
public final SubscribeToShardEvent.Builder millisBehindLatest(Long millisBehindLatest)
SubscribeToShardEvent.BuilderThe 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 in interface SubscribeToShardEvent.BuildermillisBehindLatest - 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.public final List<ChildShard.Builder> getChildShards()
public final void setChildShards(Collection<software.amazon.awssdk.services.kinesis.model.ChildShard.BuilderImpl> childShards)
public final SubscribeToShardEvent.Builder childShards(Collection<ChildShard> childShards)
SubscribeToShardEvent.BuilderThe list of the child shards of the current shard, returned only at the end of the current shard.
childShards in interface SubscribeToShardEvent.BuilderchildShards - The list of the child shards of the current shard, returned only at the end of the current shard.@SafeVarargs public final SubscribeToShardEvent.Builder childShards(ChildShard... childShards)
SubscribeToShardEvent.BuilderThe list of the child shards of the current shard, returned only at the end of the current shard.
childShards in interface SubscribeToShardEvent.BuilderchildShards - The list of the child shards of the current shard, returned only at the end of the current shard.@SafeVarargs public final SubscribeToShardEvent.Builder childShards(Consumer<ChildShard.Builder>... childShards)
SubscribeToShardEvent.BuilderThe 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 in interface SubscribeToShardEvent.BuilderchildShards - a consumer that will call methods on
ChildShard.Builder#childShards(java.util.Collection) public SubscribeToShardEvent build()
build in interface Buildablebuild in interface SdkBuilder<SubscribeToShardEvent.Builder,SubscribeToShardEvent>Copyright © 2023. All rights reserved.