Package io.awspring.cloud.kinesis.config
Interface KclEndpoint
- All Known Subinterfaces:
KclHandlerMethodEndpoint
- All Known Implementing Classes:
KclListenerEndpoint
public interface KclEndpoint
Represents a Kinesis stream from which records can be consumed by a
MessageListenerContainer.
Implementations describe what to consume and which per-listener overrides to apply, while a
MessageListenerContainerFactory decides how the container is created. Attributes returning
null leave the corresponding KclContainerOptions value configured on the factory untouched.
- Since:
- 4.3.0
- Author:
- Matej Nedic
-
Method Summary
Modifier and TypeMethodDescriptionThe KCL application name used for lease coordination.default @Nullable Booleandefault @Nullable Duration@Nullable KclCheckpointModeThe checkpoint mode overriding the one configured on the factory.default @Nullable Long@Nullable StringThe ARN of the enhanced fan-out consumer to read this stream with.@Nullable StringThe name of the enhanced fan-out consumer to read this stream with.@Nullable StringThe name of the factory bean that will process this endpoint.getId()The id of the container that will handle this endpoint.@Nullable software.amazon.kinesis.common.InitialPositionInStreamThe initial position overriding the one configured on the factory.default @Nullable Instant@Nullable StringThe DynamoDB lease table name for this endpoint.default @Nullable KclListenerModeWhether the endpoint receives records one at a time or as a batch.@Nullable StringThe CloudWatch namespace for the KCL metrics of this endpoint.@Nullable StringThe stream that return values of this endpoint are forwarded to.@Nullable RetrievalModeThe retrieval mode overriding the one configured on the factory.The Kinesis streams to consume from, never empty.
-
Method Details
-
getId
String getId()The id of the container that will handle this endpoint.- Returns:
- the container id.
-
getStreamNames
Collection<String> getStreamNames()The Kinesis streams to consume from, never empty. Several streams are consumed by one container under a single KCL application.- Returns:
- the stream names.
-
getApplicationName
String getApplicationName()The KCL application name used for lease coordination.- Returns:
- the application name.
-
getFactoryBeanName
@Nullable String getFactoryBeanName()The name of the factory bean that will process this endpoint.- Returns:
- the factory bean name, or
nullto use the default factory.
-
getCheckpointMode
@Nullable KclCheckpointMode getCheckpointMode()The checkpoint mode overriding the one configured on the factory.- Returns:
- the checkpoint mode, or
nullto keep the factory value.
-
getCheckpointInterval
- Returns:
- the checkpoint interval override, or
nullto inherit from the factory.
-
getCheckpointRecordCount
- Returns:
- the checkpoint record count override, or
nullto inherit from the factory.
-
getAutoStartup
- Returns:
- the auto-startup override, or
nullto inherit from the factory.
-
getListenerMode
Whether the endpoint receives records one at a time or as a batch.- Returns:
- the listener mode, or
nullto detect it from the listener method: a method with aCollectionparameter that is not a header receives batches.
-
getRetrievalMode
@Nullable RetrievalMode getRetrievalMode()The retrieval mode overriding the one configured on the factory.- Returns:
- the retrieval mode, or
nullto keep the factory value.
-
getInitialPositionInStream
@Nullable software.amazon.kinesis.common.InitialPositionInStream getInitialPositionInStream()The initial position overriding the one configured on the factory.- Returns:
- the initial position, or
nullto keep the factory value.
-
getInitialPositionTimestamp
- Returns:
- the initial position timestamp override, or
nullto inherit from the factory.
-
getConsumerArn
@Nullable String getConsumerArn()The ARN of the enhanced fan-out consumer to read this stream with.- Returns:
- the consumer ARN, or
nullif none or a name is used instead.
-
getConsumerName
@Nullable String getConsumerName()The name of the enhanced fan-out consumer to read this stream with.- Returns:
- the consumer name, or
nullif none or an ARN is used instead.
-
getLeaseTableName
@Nullable String getLeaseTableName()The DynamoDB lease table name for this endpoint.- Returns:
- the lease table name, or
nullto keep the factory value.
-
getMetricsNamespace
@Nullable String getMetricsNamespace()The CloudWatch namespace for the KCL metrics of this endpoint.- Returns:
- the metrics namespace, or
nullto keep the factory value.
-
getReplyStream
@Nullable String getReplyStream()The stream that return values of this endpoint are forwarded to.- Returns:
- the reply stream, or
nullif return values are not forwarded.
-