Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-27

Provide a default encoder for kafka.producer.Producer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.6
    • None
    • None

    Description

      Today, the "serializer.class" parameter in Producer is required. It is reasonable, however, to provide a default no-op Encoder<Message>. The client would have to type the Producer accordingly though.

      For example, this would work -
      val producer = new Producer<String, Message>(config)

      This wouldn't -
      val producer = new Producer<String, String>(config

      Attachments

        Activity

          People

            Unassigned Unassigned
            Anonymous Anonymous
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified