What exceptions may be caught by the following producer? (select two)
ProducerRecord
new ProducerRecord<>("topic1", "key1", "value1");
try {
producer.send(record);
} catch (Exception e) {
e.printStackTrace();
}
These are the client side exceptions that may be encountered before message is sent to the broker, and before a future is returned by the .send() method.
Currently there are no comments in this discussion, be the first to comment!