object Producer
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Producer
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- 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
- trait Service[R, K, V] extends AnyRef
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
- 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])
- def flush[R, K, V](implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): ZIO[R with Blocking with Producer[R, K, V], Throwable, Unit]
Accessor method for Service.flush
- 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
- def live[R, K, V](implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): ZLayer[Has[Serializer[R, K]] with Has[Serializer[R, V]] with Has[ProducerSettings], Throwable, Producer[R, K, V]]
- def make[R, K, V](settings: ProducerSettings, keySerializer: Serializer[R, K], valueSerializer: Serializer[R, V]): ZManaged[Any, Throwable, Service[R, K, V]]
- def metrics[R, K, V](implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): ZIO[R with Blocking with Producer[R, K, V], Throwable, Map[MetricName, Metric]]
Accessor method for Service.metrics
- 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 produce[R, K, V](topic: String, key: K, value: V)(implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): RIO[R with Blocking with Producer[R, K, V], RecordMetadata]
Accessor method for Service.produce(topic*
- def produce[R, K, V](record: ProducerRecord[K, V])(implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): RIO[R with Blocking with Producer[R, K, V], RecordMetadata]
Accessor method for Service.produce(record*
- def produceAll[R, K, V](implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): ZTransducer[R with Blocking with Producer[R, K, V], Throwable, ProducerRecord[K, V], RecordMetadata]
A stream transducer that produces all records from the stream.
- def produceAsync[R, K, V](topic: String, key: K, value: V)(implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): RIO[R with Blocking with Producer[R, K, V], Task[RecordMetadata]]
Accessor method for Service.produceAsync(topic*
- def produceAsync[R, K, V](record: ProducerRecord[K, V])(implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): RIO[R with Blocking with Producer[R, K, V], Task[RecordMetadata]]
Accessor method for Service.produceAsync(record*
- def produceChunk[R, K, V](records: Chunk[ProducerRecord[K, V]])(implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): RIO[R with Blocking with Producer[R, K, V], Chunk[RecordMetadata]]
Accessor method for Service.produceChunk
- def produceChunkAsync[R, K, V](records: Chunk[ProducerRecord[K, V]])(implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): RIO[R with Blocking with Producer[R, K, V], Task[Chunk[RecordMetadata]]]
Accessor method for Service.produceChunkAsync
- 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()
- def withProducerService[R, K, V, A](r: (Service[R, K, V]) => RIO[R with Blocking, A])(implicit arg0: zio.Tag[R], arg1: zio.Tag[K], arg2: zio.Tag[V]): RIO[R with Blocking with Producer[R, K, V], A]