不多说,直接上干货!
一切来源于官网
http://kafka.apache.org/documentation/
2.5 Legacy APIs
A more limited legacy producer and consumer api is also included in Kafka. These old Scala APIs are deprecated and only still available for compatibility purposes. Information on them can be found here here.