Packages

class KafkaProducer[K, V] extends WriteStream[KafkaProducerRecord[K, V]]

Vert.x Kafka producer.

The provides global control over writing a record.

Linear Supertypes
WriteStream[KafkaProducerRecord[K, V]], StreamBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KafkaProducer
  2. WriteStream
  3. StreamBase
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KafkaProducer(_asJava: AnyRef)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[K], arg1: scala.reflect.api.JavaUniverse.TypeTag[V])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def asJava: AnyRef
    Definition Classes
    KafkaProducer → WriteStream → StreamBase
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def close(timeout: Long, completionHandler: Handler[AsyncResult[Unit]]): Unit

    Close the producer

    Close the producer

    timeout

    timeout to wait for closing

    completionHandler

    handler called on operation completed

  8. def close(completionHandler: Handler[AsyncResult[Unit]]): Unit

    Close the producer

    Close the producer

    completionHandler

    handler called on operation completed

  9. def close(): Unit

    Close the producer

  10. def closeFuture(timeout: Long): Future[Unit]

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  11. def closeFuture(): Future[Unit]

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  12. def drainHandler(handler: Handler[Unit]): KafkaProducer[K, V]
    Definition Classes
    KafkaProducer → WriteStream
  13. def end(kafkaProducerRecord: KafkaProducerRecord[K, V]): Unit
    Definition Classes
    KafkaProducer → WriteStream
  14. def end(): Unit
    Definition Classes
    KafkaProducer → WriteStream
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def exceptionHandler(handler: Handler[Throwable]): KafkaProducer[K, V]
    Definition Classes
    KafkaProducer → WriteStream → StreamBase
  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def flush(completionHandler: Handler[Unit]): KafkaProducer[K, V]

    Invoking this method makes all buffered records immediately available to write

    Invoking this method makes all buffered records immediately available to write

    completionHandler

    handler called on operation completed

    returns

    current KafkaProducer instance

  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def partitionsFor(topic: String, handler: Handler[AsyncResult[Buffer[PartitionInfo]]]): KafkaProducer[K, V]

    Get the partition metadata for the give topic.

    Get the partition metadata for the give topic.

    topic

    topic partition for which getting partitions info

    handler

    handler called on operation completed

    returns

    current KafkaProducer instance

  27. def partitionsForFuture(topic: String): Future[Buffer[PartitionInfo]]

    Like partitionsFor but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  28. def setWriteQueueMaxSize(i: Int): KafkaProducer[K, V]
    Definition Classes
    KafkaProducer → WriteStream
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  34. def write(record: KafkaProducerRecord[K, V], handler: Handler[AsyncResult[RecordMetadata]]): KafkaProducer[K, V]

    Asynchronously write a record to a topic

    Asynchronously write a record to a topic

    record

    record to write

    handler

    handler called on operation completed

    returns

    current KafkaWriteStream instance

  35. def write(kafkaProducerRecord: KafkaProducerRecord[K, V]): KafkaProducer[K, V]
    Definition Classes
    KafkaProducer → WriteStream
  36. def writeFuture(record: KafkaProducerRecord[K, V]): Future[RecordMetadata]

    Like write but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

  37. def writeQueueFull(): Boolean
    Definition Classes
    KafkaProducer → WriteStream

Inherited from WriteStream[KafkaProducerRecord[K, V]]

Inherited from StreamBase

Inherited from AnyRef

Inherited from Any

Ungrouped