com.softwaremill.react.kafka

ConsumerProperties

case class ConsumerProperties[K, V](params: Map[String, String], topic: String, groupId: String, keyDeserializer: Deserializer[K], valueDeserializer: Deserializer[V], pollTimeout: FiniteDuration = ...) 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
Learn more about member selection
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 = ...)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

  11. def dump: String

    Dump current props for debugging

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

    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. val groupId: String

  16. final def isInstanceOf[T0]: Boolean

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

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

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

  20. final def notify(): Unit

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

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

  23. val pollTimeout: FiniteDuration

  24. def rawProperties: Properties

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

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

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

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

    Set any additional properties as needed

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

    Definition Classes
    AnyRef
  29. val topic: String

  30. val valueDeserializer: Deserializer[V]

  31. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped