Class OffsetCommitModes

    • Constructor Detail

      • OffsetCommitModes

        public OffsetCommitModes()
    • Method Detail

      • fromConfiguration

        public static OffsetCommitMode fromConfiguration​(boolean enableAutoCommit,
                                                         boolean enableCommitOnCheckpoint,
                                                         boolean enableCheckpointing)
        Determine the offset commit mode using several configuration values.
        Parameters:
        enableAutoCommit - whether or not auto committing is enabled in the provided Kafka properties.
        enableCommitOnCheckpoint - whether or not committing on checkpoints is enabled.
        enableCheckpointing - whether or not checkpoint is enabled for the consumer.
        Returns:
        the offset commit mode to use, based on the configuration values.