Class/Object

org.locationtech.geomesa.kafka10.consumer

KafkaConsumer

Related Docs: object KafkaConsumer | package consumer

Permalink

case class KafkaConsumer[K, V](topic: String, config: ConsumerConfig, keyDecoder: Decoder[K], valueDecoder: Decoder[V]) extends LazyLogging with Product with Serializable

Kafka consumer that allows reading a stream from various offsets (vs just the last read)

Linear Supertypes
Serializable, Serializable, Product, Equals, LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. KafkaConsumer
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. LazyLogging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KafkaConsumer(topic: String, config: ConsumerConfig, keyDecoder: Decoder[K], valueDecoder: Decoder[V])

    Permalink

Type Members

  1. class FetchRunnable extends Fetcher with Runnable with LazyLogging

    Permalink

    Local class to handle fetches for a particular partition.

    Local class to handle fetches for a particular partition. Will keep re-scheduling itself until consumer has been shut down.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def closeFetchers(): Unit

    Permalink
  7. def commitOffsets(): Unit

    Permalink

    Manually commit the offsets that have been read so far.

    Manually commit the offsets that have been read so far. Set auto-commit with "auto.commit.enable" config.

  8. val config: ConsumerConfig

    Permalink
  9. val consumerId: String

    Permalink
  10. def createMessageStreams(numStreams: Int, offset: RequestedOffset): List[KafkaStreamLike[K, V]]

    Permalink

    Create message streams for the given topic.

    Create message streams for the given topic.

    Note that number of streams does not imply number of threads - use "num.consumer.fetchers" in the config for that.

    Note: requested offsets depend on ephemeral zookeeper nodes - if you have terminated a client without a clean shutdown, the node might stick around for ~30 seconds, causing the requested offset to be ignored if the client is restarted during that time.

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def initializeFetchers(partitions: Set[Int]): Unit

    Permalink
  15. def initializeOffsets(zkClient: ZkClient, dirs: ZKGroupDirs, offset: RequestedOffset): Unit

    Permalink

    Look up the offsets we are requested to start with and commit then as the 'last read' offset.

    Look up the offsets we are requested to start with and commit then as the 'last read' offset.

    Attributes
    protected[org.locationtech.geomesa.kafka10.consumer]
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val keyDecoder: Decoder[K]

    Permalink
  18. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def shutdown(): Unit

    Permalink

    Stop reading messages.

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. val topic: String

    Permalink
  25. val valueDecoder: Decoder[V]

    Permalink
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped