Class/Object

com.softwaremill.react.kafka

ProducerProperties

Related Docs: object ProducerProperties | package kafka

Permalink

case class ProducerProperties[T](params: Map[String, String], topic: String, encoder: Encoder[T], partitionizer: (T) ⇒ Option[Array[Byte]] = (_: T) => 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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ProducerProperties(params: Map[String, String], topic: String, encoder: Encoder[T], partitionizer: (T) ⇒ Option[Array[Byte]] = (_: T) => None)

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

    Permalink

    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.

  6. def clone(): AnyRef

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

    Permalink

    Dump current props for debugging

  8. val encoder: Encoder[T]

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink

    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.

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

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

    Permalink

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

  16. final def notify(): Unit

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

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

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

    Permalink

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

    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.

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

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

    Permalink

    Set any additional properties as needed

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

    Permalink
    Definition Classes
    AnyRef
  23. def toProducerConfig: ProducerConfig

    Permalink

    Generate the Kafka ProducerConfig object

  24. val topic: String

    Permalink
  25. def useSnappyCompression(): ProducerProperties[T]

    Permalink

    Use Snappy Compression instead of the default compression

  26. final def wait(): Unit

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

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