final case class Conf[K, V](props: Map[String, AnyRef], keySerializer: Serializer[K], valueSerializer: Serializer[V]) extends Product with Serializable
Configuration object for the Kafka producer.
The config is compatible with Kafka's ProducerConfig.
All the key-value properties are specified in the given map, except the serializers.
The key and value serialiser instances are provided explicitly to ensure type-safety.
- K
key serializer type
- V
value serializer type
- props
map of
ProducerConfigproperties
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Conf
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Conf[K, V], B)
-
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() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (Conf[K, V]) ⇒ Boolean, msg: ⇒ Any): Conf[K, V]
- def ensuring(cond: (Conf[K, V]) ⇒ Boolean): Conf[K, V]
- def ensuring(cond: Boolean, msg: ⇒ Any): Conf[K, V]
- def ensuring(cond: Boolean): Conf[K, V]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val keySerializer: Serializer[K]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val props: Map[String, AnyRef]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val valueSerializer: Serializer[V]
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withConf(config: Config): Conf[K, V]
Extend the config with additional Typesafe config.
Extend the config with additional Typesafe config. The supplied config overrides existing properties.
-
def
withProperty(key: String, value: AnyRef): Conf[K, V]
Extend the configuration with a single key-value pair.
- def →[B](y: B): (Conf[K, V], B)