public interface StreamTracker
| Modifier and Type | Field and Description |
|---|---|
static InitialPositionInStreamExtended |
DEFAULT_POSITION_IN_STREAM
Default position to begin consuming records from a Kinesis stream.
|
| Modifier and Type | Method and Description |
|---|---|
default StreamConfig |
createStreamConfig(StreamIdentifier streamIdentifier)
Returns a new
StreamConfig for the provided stream identifier. |
FormerStreamsLeasesDeletionStrategy |
formerStreamsLeasesDeletionStrategy()
Strategy to delete leases of old streams in the lease table.
|
boolean |
isMultiStream()
Returns true if this application should accommodate the consumption of
more than one Kinesis stream.
|
default InitialPositionInStreamExtended |
orphanedStreamInitialPositionInStream()
The position for getting records from an "orphaned" stream that is in the lease table but not tracked
Default assumes that the stream no longer need to be tracked, so use LATEST for faster shard end.
|
List<StreamConfig> |
streamConfigList()
Returns the list of stream config, to be processed by the current application.
|
static final InitialPositionInStreamExtended DEFAULT_POSITION_IN_STREAM
orphanedStreamInitialPositionInStream()List<StreamConfig> streamConfigList()
FormerStreamsLeasesDeletionStrategy formerStreamsLeasesDeletionStrategy()
default InitialPositionInStreamExtended orphanedStreamInitialPositionInStream()
Default value: InitialPositionInStream.LATEST
default StreamConfig createStreamConfig(StreamIdentifier streamIdentifier)
StreamConfig for the provided stream identifier.streamIdentifier - stream for which to create a new configboolean isMultiStream()
This method must be consistent. Varying the returned value will have indeterminate, and likely problematic, effects on stream processing.
Copyright © 2024. All rights reserved.