Trait

kafka.consumer

ConsumerConnector

Related Doc: package consumer

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def commitOffsets(offsetsToCommit: Map[TopicAndPartition, OffsetAndMetadata], retryOnFailure: Boolean): Unit

    Permalink

    Commit offsets from an external offsets map.

    Commit offsets from an external offsets map.

    offsetsToCommit

    the offsets to be committed.

  2. abstract def commitOffsets: Unit

    Permalink

    KAFKA-1743: This method added for backward compatibility.

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

    Permalink

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

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

    Permalink

    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.

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

    Permalink

    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.

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

    Permalink

    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.

  7. abstract def setConsumerRebalanceListener(listener: ConsumerRebalanceListener): Unit

    Permalink

    Wire in a consumer rebalance listener to be executed when consumer rebalance occurs.

    Wire in a consumer rebalance listener to be executed when consumer rebalance occurs.

    listener

    The consumer rebalance listener to wire in

  8. abstract def shutdown(): Unit

    Permalink

    Shut down the connector

Concrete 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. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped