kafka.consumer

ConsumerConnector

trait ConsumerConnector extends AnyRef

Main interface for consumer

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConsumerConnector
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def commitOffsets: Unit

    KAFKA-1743: This method added for backward compatibility.

  2. abstract def commitOffsets(retryOnFailure: Boolean): Unit

    Commit the offsets of all broker partitions connected by this connector.

  3. abstract def createMessageStreams[K, V](topicCountMap: Map[String, Int], keyDecoder: Decoder[K], valueDecoder: Decoder[V]): Map[String, List[KafkaStream[K, V]]]

    Create a list of MessageStreams for each topic.

    Create a list of MessageStreams for each topic.

    topicCountMap

    a map of (topic, #streams) pair

    keyDecoder

    Decoder to decode the key portion of the message

    valueDecoder

    Decoder to decode the value portion of the message

    returns

    a map of (topic, list of KafkaStream) pairs. The number of items in the list is #streams. Each stream supports an iterator over message/metadata pairs.

  4. abstract def createMessageStreams(topicCountMap: Map[String, Int]): Map[String, List[KafkaStream[Array[Byte], Array[Byte]]]]

    Create a list of MessageStreams for each topic.

    Create a list of MessageStreams for each topic.

    topicCountMap

    a map of (topic, #streams) pair

    returns

    a map of (topic, list of KafkaStream) pairs. The number of items in the list is #streams. Each stream supports an iterator over message/metadata pairs.

  5. abstract def createMessageStreamsByFilter[K, V](topicFilter: TopicFilter, numStreams: Int = 1, keyDecoder: Decoder[K] = new DefaultDecoder(), valueDecoder: Decoder[V] = new DefaultDecoder()): Seq[KafkaStream[K, V]]

    Create a list of message streams for all topics that match a given filter.

    Create a list of message streams for all topics that match a given filter.

    topicFilter

    Either a Whitelist or Blacklist TopicFilter object.

    numStreams

    Number of streams to return

    keyDecoder

    Decoder to decode the key portion of the message

    valueDecoder

    Decoder to decode the value portion of the message

    returns

    a list of KafkaStream each of which provides an iterator over message/metadata pairs over allowed topics.

  6. abstract def shutdown(): Unit

    Shut down the connector

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped