final class ProducerStream[F[_]] extends AnyVal
ProducerStream provides support for inferring the key and value
type from ProducerSettings when using producerStream
with the
following syntax.
producerStream[F].using(settings)
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ProducerStream
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- ProducerStream → Any
-
def
using[K, V](settings: ProducerSettings[F, K, V])(implicit context: ContextShift[F]): Stream[F, KafkaProducer[F, K, V]]
Creates a new KafkaProducer in the
Stream
context.Creates a new KafkaProducer in the
Stream
context. This is equivalent to usingproducerStream
directly, except we're able to infer the key and value type.