由于BaseConsumerRecord被标记为“已弃用”,因此是否存在更新或推荐的MirrorMakerMessageHandler编写方式?
public class CustomHandler implements kafka.tools.MirrorMaker.MirrorMakerMessageHandler {
@Override
public java.util.List<org.apache.kafka.clients.producer.ProducerRecord<byte[], byte[]>> handle(kafka.consumer.BaseConsumerRecord arg0) {
return null;
}
}