Class/Object

com.softwaremill.react.kafka

ConsumerProperties

Related Docs: object ConsumerProperties | package kafka

Permalink

case class ConsumerProperties[K, V](params: Map[String, String], topic: String, groupId: String, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V], pollTimeout: FiniteDuration = 500 millis, pollRetryDelay: FiniteDuration = 500 millis) extends Product with Serializable

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

Instance Constructors

  1. new ConsumerProperties(params: Map[String, String], topic: String, groupId: String, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V], pollTimeout: FiniteDuration = 500 millis, pollRetryDelay: FiniteDuration = 500 millis)

    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. def clientId(id: String): ConsumerProperties[K, V]

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def commitInterval: Option[FiniteDuration]

    Permalink
  8. def commitInterval(time: FiniteDuration): ConsumerProperties[K, V]

    Permalink

    Use custom interval for auto-commit or commit flushing on manual commit.

  9. def consumerTimeoutMs(timeInMs: Long): ConsumerProperties[K, V]

    Permalink

    Consumer Timeout Throw a timeout exception to the consumer if no message is available for consumption after the specified interval

  10. def dump: String

    Permalink

    Dump current props for debugging

  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. val groupId: String

    Permalink
  15. def hasManualCommit: Boolean

    Permalink
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val keyDeserializer: Deserializer[K]

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def noAutoCommit(): ConsumerProperties[K, V]

    Permalink
  20. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  22. val params: Map[String, String]

    Permalink
  23. val pollRetryDelay: FiniteDuration

    Permalink
  24. val pollTimeout: FiniteDuration

    Permalink
  25. def rawProperties: Properties

    Permalink
  26. def readFromEndOfStream(): ConsumerProperties[K, V]

    Permalink

    What to do when there is no initial offset in Zookeeper or if an offset is out of range: 1) earliest : automatically reset the offset to the smallest offset 2) latest : automatically reset the offset to the largest offset 3) anything else: throw exception to the consumer.

    What to do when there is no initial offset in Zookeeper or if an offset is out of range: 1) earliest : automatically reset the offset to the smallest offset 2) latest : automatically reset the offset to the largest offset 3) anything else: throw exception to the consumer. If this is set to largest, the consumer may lose some messages when the number of partitions, for the topics it subscribes to, changes on the broker.

    *************************************************************************************** To prevent data loss during partition addition, set auto.offset.reset to smallest

    This make sense to change to true if you know you are listening for new data only as of after you connect to the stream new things are coming out. you can audit/reconcile in another consumer which this flag allows you to toggle if it is catch-up and new stuff or just new stuff coming out of the stream. This will also block waiting for new stuff so it makes a good listener.

    //readFromStartOfStream: Boolean = true readFromStartOfStream: Boolean = false ***************************************************************************************

  27. def setProperties(values: (String, String)*): ConsumerProperties[K, V]

    Permalink
  28. def setProperty(key: String, value: String): ConsumerProperties[K, V]

    Permalink

    Set any additional properties as needed

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

    Permalink
    Definition Classes
    AnyRef
  30. val topic: String

    Permalink
  31. val valueDeserializer: Deserializer[V]

    Permalink
  32. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. 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 AnyRef

Inherited from Any

Ungrouped