com.softwaremill.react.kafka

ProducerProperties

case class ProducerProperties[T](params: Map[String, String], topic: String, encoder: Encoder[T], partitionizer: (T) ⇒ Option[Array[Byte]] = ((x$4: T) => scala.None)) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ProducerProperties
  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 ProducerProperties(params: Map[String, String], topic: String, encoder: Encoder[T], partitionizer: (T) ⇒ Option[Array[Byte]] = ((x$4: T) => scala.None))

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 asynchronous(batchSize: Int = 200, bufferMaxMs: Int = 500): ProducerProperties[T]

    Asynchronous Mode The number of messages to send in one batch when using async mode.

    Asynchronous Mode The number of messages to send in one batch when using async mode. The producer will wait until either this number of messages are ready to send or bufferMaxMs timeout is reached.

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def dump: String

    Dump current props for debugging

  10. val encoder: Encoder[T]

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

    Definition Classes
    AnyRef
  12. def finalize(): Unit

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

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

    Definition Classes
    Any
  15. def messageSendMaxRetries(num: Int): ProducerProperties[T]

    messageSendMaxRetries This property will cause the producer to automatically retry a failed send request.

    messageSendMaxRetries This property will cause the producer to automatically retry a failed send request. This property specifies the number of retries when such failures occur. Note that setting a non-zero value here can lead to duplicates in the case of network errors that cause a message to be sent but the acknowledgment to be lost.

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

    Definition Classes
    AnyRef
  17. def noCompression(): ProducerProperties[T]

    No Compression Allows you to turn off the compression codec for all data generated by this producer.

  18. final def notify(): Unit

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

    Definition Classes
    AnyRef
  20. val partitionizer: (T) ⇒ Option[Array[Byte]]

  21. def requestRequiredAcks(value: Int): ProducerProperties[T]

    requestRequiredAcks 0) which means that the producer never waits for an acknowledgment from the broker (the same behavior as 0.

    requestRequiredAcks 0) which means that the producer never waits for an acknowledgment from the broker (the same behavior as 0.7). This option provides the lowest latency but the weakest durability guarantees (some data will be lost when a server fails). 1) which means that the producer gets an acknowledgment after the leader replica has received the data. This option provides better durability as the client waits until the server acknowledges the request as successful (only messages that were written to the now-dead leader but not yet replicated will be lost). -1) which means that the producer gets an acknowledgment after all in-sync replicas have received the data. This option provides the best durability, we guarantee that no messages will be lost as long as at least one in sync replica remains.

  22. def setProperties(values: (String, String)*): ProducerProperties[T]

  23. def setProperty(key: String, value: String): ProducerProperties[T]

    Set any additional properties as needed

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

    Definition Classes
    AnyRef
  25. def toProducerConfig: ProducerConfig

    Generate the Kafka ProducerConfig object

  26. val topic: String

  27. def useSnappyCompression(): ProducerProperties[T]

    Use Snappy Compression instead of the default compression

  28. final def wait(): Unit

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

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