class
KafkaProducer[K, V] extends AnyRef
Instance Constructors
-
new
KafkaProducer(config: KafkaConfig)
-
new
KafkaProducer(brokers: Set[String], batchSize: Int, producerType: String, serializerFqcn: String)
-
new
KafkaProducer(producerConfig: ProducerConfig)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (KafkaProducer[K, V], B)
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
batchSend(topic: String, key: K, batch: Seq[V]): Unit
-
def
clone(): AnyRef
-
def
close(): Unit
-
def
ensuring(cond: (KafkaProducer[K, V]) ⇒ Boolean, msg: ⇒ Any): KafkaProducer[K, V]
-
-
def
ensuring(cond: Boolean, msg: ⇒ Any): KafkaProducer[K, V]
-
def
ensuring(cond: Boolean): KafkaProducer[K, V]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
send(topic: String, key: K, message: V): Unit
-
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (KafkaProducer[K, V], B)
Shadowed Implicit Value Members
-
val
self: Any
-
val
self: Any
Inherited from Any
Inherited by implicit conversion any2stringadd from
KafkaProducer[K, V] to StringAdd
Inherited by implicit conversion any2stringfmt from
KafkaProducer[K, V] to StringFormat
Simple producer using string encoder and default partitioner.