KafkaConsumerLifecycle

fs2.kafka.consumer.KafkaConsumerLifecycle

Attributes

Source
KafkaConsumerLifecycle.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class KafkaConsumer[F, K, V]

Members list

Value members

Abstract methods

Wait for consumer to shut down.

Wait for consumer to shut down. Note that awaitTermination is guaranteed to complete after consumer shutdown, even when the consumer is cancelled with terminate.

This method will not initiate shutdown. To initiate shutdown and wait for it to complete, you can use terminate >> awaitTermination.

Attributes

Source
KafkaConsumerLifecycle.scala
def terminate: F[Unit]

Whenever terminate is invoked, an attempt will be made to stop the underlying consumer.

Whenever terminate is invoked, an attempt will be made to stop the underlying consumer. The terminate operation will not wait for the consumer to shutdown. If you also want to wait for the shutdown to complete, you can use terminate >> awaitTermination.

Attributes

Source
KafkaConsumerLifecycle.scala