Class

zio.kafka.producer.Producer

Live

Related Doc: package Producer

Permalink

final case class Live[R, K, V](p: KafkaProducer[Array[Byte], Array[Byte]], producerSettings: ProducerSettings, keySerializer: Serializer[R, K], valueSerializer: Serializer[R, V]) extends Service[R, K, V] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, Service[R, K, V], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Live
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Service
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Live(p: KafkaProducer[Array[Byte], Array[Byte]], producerSettings: ProducerSettings, keySerializer: Serializer[R, K], valueSerializer: Serializer[R, V])

    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. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. def flush: RIO[Blocking, Unit]

    Permalink

    Flushes the producer's internal buffer.

    Flushes the producer's internal buffer. This will guarantee that all records currently buffered will be transmitted to the broker.

    Definition Classes
    LiveService
  9. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  11. val keySerializer: Serializer[R, K]

    Permalink
  12. def metrics: RIO[Blocking, Map[MetricName, Metric]]

    Permalink

    Expose internal producer metrics

    Expose internal producer metrics

    Definition Classes
    LiveService
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  16. val p: KafkaProducer[Array[Byte], Array[Byte]]

    Permalink
  17. def produce(topic: String, key: K, value: V): RIO[R with Blocking, RecordMetadata]

    Permalink

    Produces a single record and await broker acknowledgement.

    Produces a single record and await broker acknowledgement. See produceAsync(topic* for version that allows to avoid round-trip-time penalty for each record.

    Definition Classes
    LiveService
  18. def produce(record: ProducerRecord[K, V]): RIO[R with Blocking, RecordMetadata]

    Permalink

    Produces a single record and await broker acknowledgement.

    Produces a single record and await broker acknowledgement. See produceAsync(record* for version that allows to avoid round-trip-time penalty for each record.

    Definition Classes
    LiveService
  19. final val produceAll: ZTransducer[R with Blocking, Throwable, ProducerRecord[K, V], RecordMetadata]

    Permalink

    A stream transducer that produces all records from the stream.

    A stream transducer that produces all records from the stream.

    Definition Classes
    Service
  20. def produceAsync(topic: String, key: K, value: V): RIO[R with Blocking, Task[RecordMetadata]]

    Permalink

    Produces a single record.

    Produces a single record. The effect returned from this method has two layers and describes the completion of two actions: 1. The outer layer describes the enqueueing of the record to the Producer's internal buffer. 2. The inner layer describes receiving an acknowledgement from the broker for the transmission of the record.

    It is usually recommended to not await the inner layer of every individual record, but enqueue a batch of records and await all of their acknowledgements at once. That amortizes the cost of sending requests to Kafka and increases throughput. See produce(topic* for version that awaits broker acknowledgement.

    Definition Classes
    LiveService
  21. def produceAsync(record: ProducerRecord[K, V]): RIO[R with Blocking, Task[RecordMetadata]]

    Permalink

    Produces a single record.

    Produces a single record. The effect returned from this method has two layers and describes the completion of two actions: 1. The outer layer describes the enqueueing of the record to the Producer's internal buffer. 2. The inner layer describes receiving an acknowledgement from the broker for the transmission of the record.

    It is usually recommended to not await the inner layer of every individual record, but enqueue a batch of records and await all of their acknowledgements at once. That amortizes the cost of sending requests to Kafka and increases throughput. See produce(record* for version that awaits broker acknowledgement.

    Definition Classes
    LiveService
  22. def produceChunk(records: Chunk[ProducerRecord[K, V]]): RIO[R with Blocking, Chunk[RecordMetadata]]

    Permalink

    Produces a chunk of records.

    Produces a chunk of records. See produceChunkAsync for version that allows to avoid round-trip-time penalty for each chunk.

    Definition Classes
    LiveService
  23. def produceChunkAsync(records: Chunk[ProducerRecord[K, V]]): RIO[R with Blocking, Task[Chunk[RecordMetadata]]]

    Permalink

    Produces a chunk of records.

    Produces a chunk of records. The effect returned from this method has two layers and describes the completion of two actions: 1. The outer layer describes the enqueueing of all the records to the Producer's internal buffer. 2. The inner layer describes receiving an acknowledgement from the broker for the transmission of the records.

    It is possible that for chunks that exceed the producer's internal buffer size, the outer layer will also signal the transmission of part of the chunk. Regardless, awaiting the inner layer guarantees the transmission of the entire chunk.

    Definition Classes
    LiveService
  24. val producerSettings: ProducerSettings

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

    Permalink
    Definition Classes
    AnyRef
  26. val valueSerializer: Serializer[R, V]

    Permalink
  27. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. 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 Service[R, K, V]

Inherited from AnyRef

Inherited from Any

Ungrouped