sealed abstract class KafkaProducerConnection[F[_]] extends AnyRef
KafkaProducerConnection represents a connection to a Kafka broker that can be used to create KafkaProducer instances. All KafkaProducer instances created from an given KafkaProducerConnection share a single underlying connection.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- KafkaProducerConnection
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
- abstract def metrics: F[Map[MetricName, Metric]]
- abstract def partitionsFor(topic: String): F[List[PartitionInfo]]
- abstract def produce[K, V](records: ProducerRecords[K, V])(implicit arg0: GenericSerializer[Key, F, K], arg1: GenericSerializer[Value, F, V]): F[F[ProducerResult[K, V]]]
-
abstract
def
withSerializers[K, V](keySerializer: KeySerializer[F, K], valueSerializer: ValueSerializer[F, V]): PartitionsFor[F, K, V]
Creates a new KafkaProducer using the provided serializers.
Creates a new KafkaProducer using the provided serializers.
KafkaProducerConnection.stream[F].using(settings).map(_.withSerializers(keySerializer, valueSerializer))
-
abstract
def
withSerializersFrom[K, V](settings: ProducerSettings[F, K, V]): Resource[F, PartitionsFor[F, K, V]]
Creates a new KafkaProducer in the
F
context, using serializers from the specified ProducerSettings.Creates a new KafkaProducer in the
F
context, using serializers from the specified ProducerSettings.KafkaProducerConnection.stream[F].using(settings).evalMap(_.withSerializersFrom(settings))
Concrete 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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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()
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()