zio.kafka.consumer
package zio.kafka.consumer
Members list
Packages
package zio.kafka.consumer.diagnostics
package zio.kafka.consumer.fetch
package zio.kafka.consumer.internal
Type members
Classlikes
final case class CommittableRecord[K, V](record: ConsumerRecord[K, V], commitHandle: Map[TopicPartition, OffsetAndMetadata] => Task[Unit], consumerGroupMetadata: Option[ConsumerGroupMetadata])
object CommittableRecord
Attributes
- Companion
- class
- Supertypes
- Self type
-
CommittableRecord.type
object Consumer
final case class ConsumerSettings(properties: Map[String, AnyRef], closeTimeout: Duration, pollTimeout: Duration, commitTimeout: Duration, offsetRetrieval: OffsetRetrieval, rebalanceListener: RebalanceListener, restartStreamOnRebalancing: Boolean, rebalanceSafeCommits: Boolean, maxRebalanceDuration: Option[Duration], fetchStrategy: FetchStrategy, metricLabels: Set[MetricLabel], runloopMetricsSchedule: Schedule[Any, Unit, Long])
Settings for the consumer.
Settings for the consumer.
To stay source compatible with future releases, you are recommended to construct the settings as follows:
ConsumerSettings(bootstrapServers)
.withGroupId(groupId)
.withProperties(properties)
.... etc.
Value parameters
- bootstrapServers
-
the Kafka bootstrap servers
Attributes
- Companion
- object
- Supertypes
object ConsumerSettings
Attributes
- Companion
- class
- Supertypes
- Self type
-
ConsumerSettings.type
case object EmptyOffsetBatch extends OffsetBatch
Attributes
- Supertypes
- Self type
-
EmptyOffsetBatch.type
final case class InvalidSubscriptionUnion(subscriptions: Chunk[Subscription]) extends RuntimeException
object Offset
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object EmptyOffsetBatch.type
object OffsetBatch
Attributes
- Companion
- trait
- Supertypes
- Self type
-
OffsetBatch.type
trait RebalanceConsumer
object RebalanceConsumer
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RebalanceConsumer.type
final case class RebalanceListener(onAssigned: (Set[TopicPartition], RebalanceConsumer) => Task[Unit], onRevoked: (Set[TopicPartition], RebalanceConsumer) => Task[Unit], onLost: (Set[TopicPartition], RebalanceConsumer) => Task[Unit])
ZIO wrapper around Kafka's ConsumerRebalanceListener
to work with Scala collection types and ZIO effects.
ZIO wrapper around Kafka's ConsumerRebalanceListener
to work with Scala collection types and ZIO effects.
Note that the given ZIO effects are executed directly on the Kafka poll thread. Fork and shift to another executor when this is not desired.
Attributes
- Companion
- object
- Supertypes
object RebalanceListener
Attributes
- Companion
- class
- Supertypes
- Self type
-
RebalanceListener.type
object Subscription
Attributes
- Companion
- trait
- Supertypes
- Self type
-
Subscription.type
In this article