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
Ordering
- Alphabetic
- By Inheritance
Inherited
- RichKafkaConsumer
- StrictLogging
- ConsumerAccess
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- type Key = K
- Definition Classes
- RichKafkaConsumer → ConsumerAccess
- type Value = V
- Definition Classes
- RichKafkaConsumer → ConsumerAccess
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- def assignToTopics(): Try[Set[TopicPartition]]
- def assignmentPartitions: List[Int]
- def assignments(): List[TopicPartition]
- val asyncScheduler: Scheduler
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close(): Unit
- Definition Classes
- RichKafkaConsumer → AutoCloseable
- def commitAsync(state: PartitionOffsetState): Future[Map[TopicPartition, OffsetAndMetadata]]
- def committed(partition: Int): Map[String, OffsetAndMetadata]
- def committedStatus(): List[CommittedStatus]
- returns
a scala-friendly data structure containing the commit status of the kafka cluster
- val consumer: KafkaConsumer[K, V]
- val defaultPollTimeout: Duration
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def execNext(): Task[Unit]
- returns
a task which will run any exec commands on our kafka scheduler
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isClosed(): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def partitions: List[KafkaPartitionInfo]
- def partitionsByTopic(limitToOurTopic: Boolean = true): Map[String, List[KafkaPartitionInfo]]
- def positionsFor(partition: Int): Map[String, Long]
- def seekTo(topicPartitionState: PartitionOffsetState): Try[Boolean]
- def seekToBeginning(): Try[Boolean]
- def seekToBeginning(partition: Int): Try[Boolean]
- def seekToCustom(computeOffset: (KafkaPartitionInfo) => Long): Try[Boolean]
- def seekToEnd(): Try[Boolean]
- def seekToOffset(offset: Long): Try[Boolean]
- def status(verbose: Boolean): String
- def subscribe(topic: String, listener: ConsumerRebalanceListener = RebalanceListener): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val topics: Set[String]
- 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
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withConsumer[A](withConsumer: (RichKafkaConsumer[K, V]) => A): Future[A]
- Definition Classes
- RichKafkaConsumer → ConsumerAccess