Builds a KafkaConsumerObservable instance.
Builds a KafkaConsumerObservable instance.
is the KafkaConsumerConfig needed for initializing the
consumer; also make sure to see monix/kafka/default.conf
for
the default values being used.
is the pattern of Kafka topics to subscribe to.
Builds a KafkaConsumerObservable instance.
Builds a KafkaConsumerObservable instance.
is the KafkaConsumerConfig needed for initializing the
consumer; also make sure to see monix/kafka/default.conf
for
the default values being used.
is the list of Kafka topics to subscribe to.
Builds a KafkaConsumerObservable instance.
Builds a KafkaConsumerObservable instance.
is the KafkaConsumerConfig needed for initializing the
consumer; also make sure to see monix/kafka/default.conf
for
the default values being used.
is a factory for the
org.apache.kafka.clients.consumer.KafkaConsumer
instance to use for consuming from Kafka
Returns a Task
for creating a consumer instance given topics regex.
Returns a Task
for creating a consumer instance given list of topics.
Builds a KafkaConsumerObservable instance with ability to manual commit offsets and forcibly disables auto commits in configuration.
Builds a KafkaConsumerObservable instance with ability to manual commit offsets and forcibly disables auto commits in configuration. Such instances emit CommittableMessage instead of Kafka's ConsumerRecord.
Usage example:
KafkaConsumerObservable.manualCommit[String,String](consumerCfg, List(topicName)) .map(message => message.record.value() -> message.committableOffset) .mapEval { case (value, offset) => performBusinessLogic(value).map(_ => offset) } .bufferTimedAndCounted(1.second, 1000) .mapEval(offsets => CommittableOffsetBatch(offsets).commitSync()) .subscribe()
is the KafkaConsumerConfig needed for initializing the
consumer; also make sure to see monix/kafka/default.conf
for
the default values being used. Auto commit will disabled and
observable commit order will turned to NoAck forcibly!
is the pattern of Kafka topics to subscribe to.
Builds a KafkaConsumerObservable instance with ability to manual commit offsets and forcibly disables auto commits in configuration.
Builds a KafkaConsumerObservable instance with ability to manual commit offsets and forcibly disables auto commits in configuration. Such instances emit CommittableMessage instead of Kafka's ConsumerRecord.
Usage example:
KafkaConsumerObservable.manualCommit[String,String](consumerCfg, List(topicName)) .map(message => message.record.value() -> message.committableOffset) .mapEval { case (value, offset) => performBusinessLogic(value).map(_ => offset) } .bufferTimedAndCounted(1.second, 1000) .mapEval(offsets => CommittableOffsetBatch(offsets).commitSync()) .subscribe()
is the KafkaConsumerConfig needed for initializing the
consumer; also make sure to see monix/kafka/default.conf
for
the default values being used. Auto commit will disabled and
observable commit order will turned to NoAck forcibly!
is the list of Kafka topics to subscribe to.
Builds a KafkaConsumerObservable instance with ability to manual commit offsets and forcibly disables auto commits in configuration.
Builds a KafkaConsumerObservable instance with ability to manual commit offsets and forcibly disables auto commits in configuration. Such instances emit CommittableMessage instead of Kafka's ConsumerRecord.
Usage example:
KafkaConsumerObservable.manualCommit[String,String](consumerCfg, List(topicName)) .map(message => message.record.value() -> message.committableOffset) .mapEval { case (value, offset) => performBusinessLogic(value).map(_ => offset) } .bufferTimedAndCounted(1.second, 1000) .mapEval(offsets => CommittableOffsetBatch(offsets).commitSync()) .subscribe()
is the KafkaConsumerConfig needed for initializing the
consumer; also make sure to see monix/kafka/default.conf
for
the default values being used. Auto commit will disabled and
observable commit order will turned to NoAck forcibly!
is a factory for the
org.apache.kafka.clients.consumer.KafkaConsumer
instance to use for consuming from Kafka