Creates a new ConsumerSettings instance using
the specified ExecutionContext
and implicit
Deserializers for the key and value.
Creates a new ConsumerSettings instance using the specified settings.
Creates a new ConsumerSettings instance using the
specified settings. Since offset commits are managed
manually, automatic commits are disabled by default.
Automatic offset commits can be enabled again using
ConsumerSettings#withEnableAutoCommit.
Since some Kafka operations are blocking, these should
be run on a dedicated ExecutionContext
. If you have
a suitable context, you can specify it. Otherwise,
you can:
- use consumerExecutionContextResource
to create one,
- not specify an ExecutionContext
, and a default one
will be used; the default context is equivalent to a
consumerExecutionContextResource
with 1
thread.
Creates a new ConsumerSettings instance using implicit Deserializers for the key and value.
Creates a new ConsumerSettings instance using the specified settings.
Creates a new ConsumerSettings instance using the
specified settings. Since offset commits are managed
manually, automatic commits are disabled by default.
Automatic offset commits can be enabled again using
ConsumerSettings#withEnableAutoCommit.
Since some Kafka operations are blocking, these should
be run on a dedicated ExecutionContext
. When no such
ExecutionContext
is specified, a default one will be
used. The default ExecutionContext
is equivalent to
a consumerExecutionContextResource
with 1
thread.