Packages

final class RichKafkaConsumer[K, V] extends AutoCloseable with StrictLogging

A means of driving a kafka-stream using the consumer (not kafka streaming) API

Linear Supertypes
StrictLogging, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichKafkaConsumer
  2. StrictLogging
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichKafkaConsumer(consumer: KafkaConsumer[K, V], topics: Set[String], defaultPollTimeout: Duration)

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 asObservable(closeOnComplete: Boolean)(implicit scheduler: Scheduler): Observable[ConsumerRecord[K, V]]

    Represent this consumer as an observable

    Represent this consumer as an observable

    closeOnComplete

    set to true if the underlying Kafka consumer should be closed when this observable completes

  6. def asObservableCommitEvery(closeOnComplete: Boolean, numberOfMessagesToReceiveBetweenOffsetCommits: Int)(implicit scheduler: Scheduler): Observable[ConsumerRecord[K, V]]

    closeOnComplete

    a flag indicating that this consumer should be closed when this observable is

    numberOfMessagesToReceiveBetweenOffsetCommits

    the number of messages which will be received before we commit our offsets

    returns

    an observable which will commit the offsets every n messages

  7. def asObservableCommitEveryObservable(closeOnComplete: Boolean, numberOfMessagesToReceiveBetweenOffsetCommits: Int)(implicit scheduler: Scheduler): Observable[(PartitionOffsetState, Option[Future[Unit]], ConsumerRecord[K, V])]

    closeOnComplete

    a flag indicating that this consumer should be closed when this observable is

    numberOfMessagesToReceiveBetweenOffsetCommits

    the number of messages which will be received before we commit our offsets

    returns

    an observable which will commit the offsets every n messages

  8. def assignmentPartitions: List[Int]
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def close(): Unit
    Definition Classes
    RichKafkaConsumer → AutoCloseable
  11. def commitAsync(state: PartitionOffsetState): Future[Map[TopicPartition, OffsetAndMetadata]]

    state

    the state to commit

    returns

    a future of the commit result

  12. def committed(partition: Int): Map[String, OffsetAndMetadata]
  13. val consumer: KafkaConsumer[K, V]
  14. val defaultPollTimeout: Duration
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def isClosed(): Boolean
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  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 partitions: List[PartitionInfo]
  27. def partitionsByTopic(): Map[Key, List[PartitionInfo]]
  28. def poll(timeout: Duration = javaPollDuration): Iterable[ConsumerRecord[K, V]]

    poll for records

    poll for records

    timeout

    the poll timeout

    returns

    the records returned from the poll

  29. def positionsFor(partition: Int): Map[String, Long]
  30. def seekToBeginning(partition: Int): Boolean
  31. def status(verbose: Boolean): String
  32. def subscribe(topic: String, listener: ConsumerRebalanceListener = RebalanceListener): Unit
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. val topics: Set[String]
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from StrictLogging

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped