Package com.helix.core.stream.kafka
Class KafkaStreamConfig
java.lang.Object
com.helix.core.stream.kafka.KafkaStreamConfig
Configuration for clustered Kafka rule streaming ingestion and result publishing.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKafkaStreamConfig(String bootstrapServers, String groupId, Set<String> inputTopics, String outputTopic, String autoOffsetReset, boolean enableAutoCommit, CommitMode commitMode, Duration pollTimeout, int maxPollRecords, int maxInFlightPerPartition, int lowWatermarkPerPartition, Map<String, Object> customConsumerProps, Map<String, Object> customProducerProps) -
Method Summary
Modifier and TypeMethodDescriptionstatic KafkaStreamConfig.Builderbuilder()static KafkaStreamConfigintintintboolean
-
Field Details
-
DEFAULT_BOOTSTRAP_SERVERS
- See Also:
-
DEFAULT_GROUP_ID
- See Also:
-
DEFAULT_AUTO_OFFSET_RESET
- See Also:
-
DEFAULT_POLL_TIMEOUT
-
DEFAULT_MAX_POLL_RECORDS
public static final int DEFAULT_MAX_POLL_RECORDS- See Also:
-
DEFAULT_MAX_IN_FLIGHT_PER_PARTITION
public static final int DEFAULT_MAX_IN_FLIGHT_PER_PARTITION- See Also:
-
DEFAULT_LOW_WATERMARK_PER_PARTITION
public static final int DEFAULT_LOW_WATERMARK_PER_PARTITION- See Also:
-
-
Constructor Details
-
KafkaStreamConfig
public KafkaStreamConfig(String bootstrapServers, String groupId, Set<String> inputTopics, String outputTopic, String autoOffsetReset, boolean enableAutoCommit, CommitMode commitMode, Duration pollTimeout, int maxPollRecords, int maxInFlightPerPartition, int lowWatermarkPerPartition, Map<String, Object> customConsumerProps, Map<String, Object> customProducerProps)
-
-
Method Details
-
builder
-
defaultConfig
-
toConsumerProperties
-
toProducerProperties
-
getBootstrapServers
-
getGroupId
-
getInputTopics
-
getOutputTopic
-
getAutoOffsetReset
-
isEnableAutoCommit
public boolean isEnableAutoCommit() -
getCommitMode
-
getPollTimeout
-
getMaxPollRecords
public int getMaxPollRecords() -
getMaxInFlightPerPartition
public int getMaxInFlightPerPartition() -
getLowWatermarkPerPartition
public int getLowWatermarkPerPartition() -
getCustomConsumerProps
-
getCustomProducerProps
-