Packages

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

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

Self Type
RichKafkaConsumer[K, V]
Linear Supertypes
StrictLogging, ConsumerAccess, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichKafkaConsumer
  2. StrictLogging
  3. ConsumerAccess
  4. AutoCloseable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Key = K
    Definition Classes
    RichKafkaConsumerConsumerAccess
  2. type Value = V
    Definition Classes
    RichKafkaConsumerConsumerAccess

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): 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 assignToTopics(): Try[Set[TopicPartition]]
  7. def assignmentPartitions: List[Int]
  8. def assignments(): List[TopicPartition]
  9. val asyncScheduler: Scheduler
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def close(): Unit
    Definition Classes
    RichKafkaConsumer → AutoCloseable
  12. def commitAsync(state: PartitionOffsetState): Future[Map[TopicPartition, OffsetAndMetadata]]
  13. def committed(partition: Int): Map[String, OffsetAndMetadata]
  14. def committedStatus(): List[CommittedStatus]

    returns

    a scala-friendly data structure containing the commit status of the kafka cluster

  15. val consumer: KafkaConsumer[K, V]
  16. val defaultPollTimeout: Duration
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def execNext(): Task[Unit]

    returns

    a task which will run any exec commands on our kafka scheduler

  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def isClosed(): Boolean
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def partitions: List[KafkaPartitionInfo]
  30. def partitionsByTopic(limitToOurTopic: Boolean = true): Map[String, List[KafkaPartitionInfo]]
  31. def positionsFor(partition: Int): Map[String, Long]
  32. def seekTo(topicPartitionState: PartitionOffsetState): Try[Boolean]
  33. def seekToBeginning(): Try[Boolean]
  34. def seekToBeginning(partition: Int): Try[Boolean]
  35. def seekToCustom(computeOffset: (KafkaPartitionInfo) => Long): Try[Boolean]
  36. def seekToEnd(): Try[Boolean]
  37. def seekToOffset(offset: Long): Try[Boolean]
  38. def status(verbose: Boolean): String
  39. def subscribe(topic: String, listener: ConsumerRebalanceListener = RebalanceListener): Unit
  40. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. val topics: Set[String]
  43. def unsafePoll(timeout: Duration = javaPollDuration): Iterable[ConsumerRecord[K, V]]

    this poll is unsafe as it will fail if invoked from a different thread from which this consumer was created

    this poll is unsafe as it will fail if invoked from a different thread from which this consumer was created

    returns

    the records pull from Kafka

  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  47. def withConsumer[A](withConsumer: (RichKafkaConsumer[K, V]) => A): Future[A]
    Definition Classes
    RichKafkaConsumerConsumerAccess

Inherited from StrictLogging

Inherited from ConsumerAccess

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped