Class SendResult<K,​V>

  • Type Parameters:
    K - the key type.
    V - the value type.

    public class SendResult<K,​V>
    extends java.lang.Object
    Result for a ListenableFuture after a send.
    Author:
    Gary Russell
    • Constructor Summary

      Constructors 
      Constructor Description
      SendResult​(org.apache.kafka.clients.producer.ProducerRecord<K,​V> producerRecord, org.apache.kafka.clients.producer.RecordMetadata recordMetadata)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.kafka.clients.producer.ProducerRecord<K,​V> getProducerRecord()  
      org.apache.kafka.clients.producer.RecordMetadata getRecordMetadata()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SendResult

        public SendResult​(org.apache.kafka.clients.producer.ProducerRecord<K,​V> producerRecord,
                          org.apache.kafka.clients.producer.RecordMetadata recordMetadata)
    • Method Detail

      • getProducerRecord

        public org.apache.kafka.clients.producer.ProducerRecord<K,​V> getProducerRecord()
      • getRecordMetadata

        public org.apache.kafka.clients.producer.RecordMetadata getRecordMetadata()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object