Class

io.scalajs.npm.kafkanode

Consumer

Related Doc: package kafkanode

Permalink

class Consumer extends Object with IEventEmitter

Kafka-Node Consumer

Annotations
@RawJSType() @native() @JSImport( "kafka-node" , "Producer" )
Linear Supertypes
IEventEmitter, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Consumer
  2. IEventEmitter
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Consumer(client: Client, payloads: Array[FetchRequest], options: |[ConsumerOptions, RawOptions] = js.native)

    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. def addListener(eventName: String, listener: Function): Consumer.this.type

    Permalink
    Definition Classes
    IEventEmitter
  5. def addTopics(topics: String, callback: Function): Unit

    Permalink

    Add topics to current consumer, if any topic to be added not exists, return error

    Add topics to current consumer, if any topic to be added not exists, return error

    Example:
    1. addTopics(topics, callback, fromOffset)

  6. def addTopics(topics: String, callback: Function, fromOffset: Boolean): Unit

    Permalink

    Add topics to current consumer, if any topic to be added not exists, return error

    Add topics to current consumer, if any topic to be added not exists, return error

    Example:
    1. addTopics(topics, callback, fromOffset)

  7. final def asInstanceOf[T0]: T0

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

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

    Permalink

    Closes the consumer

    Closes the consumer

    callback

    the callback

    Example:
    1. consumer.close(force, callback)

  10. def commit(callback: Function): Unit

    Permalink

    Commit offset of the current topics manually, this method should be called when a consumer leaves.

    Commit offset of the current topics manually, this method should be called when a consumer leaves.

    Example:
    1. consumer.commit(function(err, data) { .. });

  11. var domain: String

    Permalink
    Definition Classes
    IEventEmitter
  12. def emit(name: String, args: Any*): Any

    Permalink
    Definition Classes
    IEventEmitter
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  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 getMaxListeners(): Int

    Permalink
    Definition Classes
    IEventEmitter
  18. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  19. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  21. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  22. def listenerCount(eventName: String): Int

    Permalink
    Definition Classes
    IEventEmitter
  23. def listeners(eventName: String): Array[Function]

    Permalink
    Definition Classes
    IEventEmitter
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def on(eventName: String, listener: Function): Consumer.this.type

    Permalink
    Definition Classes
    IEventEmitter
  28. def once(eventName: String, listener: Function): Consumer.this.type

    Permalink
    Definition Classes
    IEventEmitter
  29. def pause(): Unit

    Permalink

    Pauses the consumer

    Pauses the consumer

    Example:
    1. consumer.pause()

  30. def pauseTopics(topics: Array[String]): Unit

    Permalink

    Pause specific topics

    Pause specific topics

    Example:
    1. consumer.pauseTopics(topics)

  31. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  32. def removeAllListeners(): Consumer.this.type

    Permalink
    Definition Classes
    IEventEmitter
  33. def removeAllListeners(eventName: String): Consumer.this.type

    Permalink
    Definition Classes
    IEventEmitter
  34. def removeListener(eventName: String, listener: Function): Consumer.this.type

    Permalink
    Definition Classes
    IEventEmitter
  35. def removeTopics(topics: Array[String], callback: Function): Unit

    Permalink

    Removes an array of topics

    Removes an array of topics

    topics

    the array of topics to remove

    callback

    the callback

    Example:
    1. consumer.removeTopics(['t1', 't2'], function (err, removed) { .. })

  36. def resume(): Unit

    Permalink

    Resume the consumers

    Resume the consumers

    Example:
    1. consumer.resume()

  37. def resumeTopics(topics: Array[String]): Unit

    Permalink

    Resume specific topics

    Resume specific topics

    Example:
    1. consumer.resumeTopics(topics)

  38. def setMaxListeners(n: Int): Consumer.this.type

    Permalink
    Definition Classes
    IEventEmitter
  39. def setOffset(topic: String, partition: Int, offset: Int): Unit

    Permalink

    Set offset of the given topic

    Set offset of the given topic

    Example:
    1. consumer.setOffset('topic', 0, 0)

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

    Permalink
    Definition Classes
    AnyRef
  41. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  42. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  43. var usingDomains: Boolean

    Permalink
    Definition Classes
    IEventEmitter
  44. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  45. final def wait(): Unit

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

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

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

Inherited from IEventEmitter

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped