object KafkaProducerConfig extends Serializable
- Alphabetic
- By Inheritance
- KafkaProducerConfig
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
apply(source: Config, includeDefaults: Boolean = true): KafkaProducerConfig
Loads the KafkaProducerConfig from a parsed
com.typesafe.config.Config
reference.Loads the KafkaProducerConfig from a parsed
com.typesafe.config.Config
reference.NOTE that this method doesn't assume any path prefix for loading the configuration settings, so it does NOT assume a root path like
kafka
. In case case you need that, you can always do:KafkaProducerConfig(globalConfig.getConfig("kafka"))
- source
is the typesafe
Config
object to read from- includeDefaults
should be
true
in case you want to fallback to the default values provided by themonix-kafka
library inmonix/kafka/default.conf
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
lazy val
default: KafkaProducerConfig
Returns the default configuration, specified the
monix-kafka
project inmonix/kafka/default.conf
. -
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
-
def
load(): KafkaProducerConfig
Loads the KafkaProducerConfig either from a file path or from a resource, if
config.file
orconfig.resource
are defined, or otherwise returns the default config.Loads the KafkaProducerConfig either from a file path or from a resource, if
config.file
orconfig.resource
are defined, or otherwise returns the default config.If you want to specify a
config.file
, you can configure the Java process on execution like so:java -Dconfig.file=/path/to/application.conf
Or if you want to specify a
config.resource
to be loaded from the executable's distributed JAR or classpath:java -Dconfig.resource=com/company/mySpecial.conf
In case neither of these are specified, then the configuration loaded is the default one, from the
monix-kafka
project, specified inmonix/kafka/default.conf
. -
def
loadFile(file: File, rootPath: String = defaultRootPath, includeDefaults: Boolean = true): KafkaProducerConfig
Loads a KafkaProducerConfig from a specified file.
Loads a KafkaProducerConfig from a specified file.
- file
is the configuration path from where to load the config
- rootPath
is the config root path (e.g.
kafka
)- includeDefaults
should be
true
in case you want to fallback to the default values provided by themonix-kafka
library inmonix/kafka/default.conf
-
def
loadResource(resourceBaseName: String, rootPath: String = defaultRootPath, includeDefaults: Boolean = true): KafkaProducerConfig
Loads a KafkaProducerConfig from a project resource.
Loads a KafkaProducerConfig from a project resource.
- resourceBaseName
is the resource from where to load the config
- rootPath
is the config root path (e.g.
kafka
)- includeDefaults
should be
true
in case you want to fallback to the default values provided by themonix-kafka
library inmonix/kafka/default.conf
-
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()