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) 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)

    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 clone(): AnyRef

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

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

    Permalink

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

  8. 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

  9. def dump: String

    Permalink

    Dump current props for debugging

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

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. val groupId: String

    Permalink
  14. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
  18. final def notify(): Unit

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

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

    Permalink
  21. val pollTimeout: FiniteDuration

    Permalink
  22. def rawProperties: Properties

    Permalink
  23. 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 ***************************************************************************************

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

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

    Permalink

    Set any additional properties as needed

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

    Permalink
    Definition Classes
    AnyRef
  27. val topic: String

    Permalink
  28. val valueDeserializer: Deserializer[V]

    Permalink
  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 Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped