Guest User

Untitled

a guest
Dec 14th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. /**
  2. * Set a {@link ProducerListener} which will be invoked when Kafka acknowledges
  3. * a send operation. By default a {@link LoggingProducerListener} is configured
  4. * which logs errors only.
  5. * @param producerListener the listener; may be {@code null}.
  6. */
  7. public void setProducerListener(ProducerListener<K, V> producerListener) {
  8. this.producerListener = producerListener;
  9. }
  10.  
  11. /**
  12. * Invoked after an attempt to send a message has failed.
  13. * @param topic the destination topic
  14. * @param partition the destination partition (could be null)
  15. * @param key the key of the outbound message
  16. * @param value the payload of the outbound message
  17. * @param exception the exception thrown
  18. */
  19. void onError(String topic, Integer partition, K key, V value, Exception exception);
Add Comment
Please, Sign In to add comment