通常说的kafka拦截器,指的是生产者发送时经过的拦截器,在kafka中实现拦截器要继承ProducerInterceptor接口。该接口的文件内容如下:
package org.apache.kafka.clients.producer;
import org.apache.kafka.common.Configurable
通常说的kafka拦截器,指的是生产者发送时经过的拦截器,在kafka中实现拦截器要继承ProducerInterceptor接口。该接口的文件内容如下:
package org.apache.kafka.clients.producer;
import org.apache.kafka.common.Configurable