Class

kafka.javaapi.consumer

SimpleConsumer

Related Doc: package consumer

Permalink

class SimpleConsumer extends AnyRef

A consumer of kafka messages

Annotations
@threadsafe()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SimpleConsumer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleConsumer(host: String, port: Int, soTimeout: Int, bufferSize: Int, clientId: String)

    Permalink

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. val bufferSize: Int

    Permalink
  6. val clientId: String

    Permalink
  7. def clone(): AnyRef

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

    Permalink
  9. def commitOffsets(request: OffsetCommitRequest): OffsetCommitResponse

    Permalink

    Commit offsets for a topic to Zookeeper

    Commit offsets for a topic to Zookeeper

    request

    a kafka.javaapi.OffsetCommitRequest object.

    returns

    a kafka.javaapi.OffsetCommitResponse object.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def fetch(request: FetchRequest): FetchResponse

    Permalink

    Fetch a set of messages from a topic.

    Fetch a set of messages from a topic.

    request

    specifies the topic name, topic partition, starting byte offset, maximum bytes to be fetched.

    returns

    a set of fetched messages

  13. def fetch(request: api.FetchRequest): FetchResponse

    Permalink

    Fetch a set of messages from a topic.

    Fetch a set of messages from a topic. This version of the fetch method takes the Scala version of a fetch request (i.e., kafka.api.FetchRequest and is intended for use with the kafka.api.FetchRequestBuilder.

    request

    specifies the topic name, topic partition, starting byte offset, maximum bytes to be fetched.

    returns

    a set of fetched messages

  14. def fetchOffsets(request: OffsetFetchRequest): OffsetFetchResponse

    Permalink

    Fetch offsets for a topic from Zookeeper

    Fetch offsets for a topic from Zookeeper

    request

    a kafka.javaapi.OffsetFetchRequest object.

    returns

    a kafka.javaapi.OffsetFetchResponse object.

  15. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getOffsetsBefore(request: OffsetRequest): OffsetResponse

    Permalink

    Get a list of valid offsets (up to maxSize) before the given time.

    Get a list of valid offsets (up to maxSize) before the given time.

    request

    a kafka.javaapi.OffsetRequest object.

    returns

    a kafka.javaapi.OffsetResponse object.

  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. val host: String

    Permalink
  20. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  24. val port: Int

    Permalink
  25. def send(request: TopicMetadataRequest): TopicMetadataResponse

    Permalink

    Fetch metadata for a sequence of topics.

    Fetch metadata for a sequence of topics.

    request

    specifies the versionId, clientId, sequence of topics.

    returns

    metadata for each topic in the request.

  26. val soTimeout: Int

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped