object KafkaProducer
- Alphabetic
- By Inheritance
- KafkaProducer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract class Metrics[F[_], K, V] extends KafkaProducer[F, K, V]
KafkaProducer.Metrics extends KafkaProducer to provide access to the underlying producer metrics.
- implicit final class ProducerOps[F[_], K, V] extends AnyVal
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[F[_]]: ProducerPartiallyApplied[F]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pipe[F[_], K, V, P](settings: ProducerSettings[F, K, V], producer: KafkaProducer[F, K, V])(implicit arg0: Concurrent[F]): Pipe[F, ProducerRecords[K, V, P], ProducerResult[K, V, P]]
Produces records in batches using the provided KafkaProducer.
Produces records in batches using the provided KafkaProducer. The number of records in the same batch is limited using the ProducerSettings#parallelism setting.
- def pipe[F[_], K, V, P](settings: ProducerSettings[F, K, V])(implicit arg0: ConcurrentEffect[F], arg1: ContextShift[F]): Pipe[F, ProducerRecords[K, V, P], ProducerResult[K, V, P]]
Creates a KafkaProducer using the provided settings and produces record in batches, limiting the number of records in the same batch using ProducerSettings#parallelism.
- def resource[F[_], K, V](settings: ProducerSettings[F, K, V])(implicit F: ConcurrentEffect[F], context: ContextShift[F]): Resource[F, Metrics[F, K, V]]
Creates a new KafkaProducer in the
Resourcecontext, using the specified ProducerSettings.Creates a new KafkaProducer in the
Resourcecontext, using the specified ProducerSettings. Note that there is another version whereF[_]is specified explicitly and the key and value type can be inferred, which allows you to use the following syntax.KafkaProducer.resource[F].using(settings)
- def stream[F[_], K, V](settings: ProducerSettings[F, K, V])(implicit F: ConcurrentEffect[F], context: ContextShift[F]): Stream[F, Metrics[F, K, V]]
Creates a new KafkaProducer in the
Streamcontext, using the specified ProducerSettings.Creates a new KafkaProducer in the
Streamcontext, using the specified ProducerSettings. Note that there is another version whereF[_]is specified explicitly and the key and value type can be inferred, which allows you to use the following syntax.KafkaProducer.stream[F].using(settings)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def resource[F[_]](implicit F: ConcurrentEffect[F]): ProducerResource[F]
Alternative version of
resourcewhere theF[_]is specified explicitly, and where the key and value type can be inferred from the ProducerSettings.Alternative version of
resourcewhere theF[_]is specified explicitly, and where the key and value type can be inferred from the ProducerSettings. This allows you to use the following syntax.KafkaProducer.resource[F].using(settings)
- Annotations
- @deprecated
- Deprecated
(Since version 1.5.0) use KafkaProducer[F].resource(settings)
- def stream[F[_]](implicit F: ConcurrentEffect[F]): ProducerStream[F]
Alternative version of
streamwhere theF[_]is specified explicitly, and where the key and value type can be inferred from the ProducerSettings.Alternative version of
streamwhere theF[_]is specified explicitly, and where the key and value type can be inferred from the ProducerSettings. This allows you to use the following syntax.KafkaProducer.stream[F].using(settings)
- Annotations
- @deprecated
- Deprecated
(Since version 1.5.0) use KafkaProducer[F].stream(settings)