← ZIO Kafka docs

zio.kafka.consumer

Members list

Type members

Classlikes

final case class CommittableRecord[K, V](record: ConsumerRecord[K, V], nextOffset: OffsetAndMetadata, commitHandle: Map[TopicPartition, OffsetAndMetadata] => Task[Unit], consumerGroupMetadata: Option[ConsumerGroupMetadata])

Attributes

Companion
object
Source
CommittableRecord.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
CommittableRecord.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait Consumer

Attributes

Companion
object
Source
Consumer.scala
Supertypes
class Object
trait Matchable
class Any
object Consumer

Attributes

Companion
trait
Source
Consumer.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Consumer.type

Attributes

Companion
class
Source
ConsumerSettings.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class ConsumerSettings(properties: Map[String, AnyRef] = ..., closeTimeout: Duration = ..., pollTimeout: Duration = ..., commitTimeout: Duration = ..., offsetRetrieval: OffsetRetrieval = ..., rebalanceListener: RebalanceListener = ..., rebalanceSafeCommits: Boolean = ..., maxRebalanceDuration: Option[Duration] = ..., fetchStrategy: FetchStrategy = ..., metricLabels: Set[MetricLabel] = ..., metricsObserver: Option[ConsumerMetricsObserver] = ..., runloopMetricsSchedule: Schedule[Any, Unit, Long] = ..., authErrorRetrySchedule: Schedule[Any, Throwable, Any] = ..., maxStreamPullIntervalOption: Option[Duration] = ..., diagnostics: ConsumerDiagnostics = ..., emptyPollCountToMetaRefresh: Option[Int] = ...)

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)
   .tuneForHighThroughput
   .withGroupId(groupId)
   .withProperties(properties)
   .... etc.

Attributes

Companion
object
Source
ConsumerSettings.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object EmptyOffsetBatch extends OffsetBatch

Attributes

Source
OffsetBatch.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait OffsetBatch
class Object
trait Matchable
class Any
Show all
Self type
final case class InvalidSubscriptionUnion(subscriptions: Chunk[Subscription]) extends RuntimeException

Attributes

Source
InvalidSubscriptionUnion.scala
Supertypes
trait Product
trait Equals
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
trait Offset

The offset of a consumed record.

The offset of a consumed record.

Attributes

Companion
object
Source
Offset.scala
Supertypes
class Object
trait Matchable
class Any
object Offset

Attributes

Companion
trait
Source
Offset.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Offset.type
object OffsetBatch

Attributes

Companion
trait
Source
OffsetBatch.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait OffsetBatch

Attributes

Companion
object
Source
OffsetBatch.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
final case class RebalanceListener(onAssigned: Set[TopicPartition] => Task[Unit], onRevoked: Set[TopicPartition] => Task[Unit], onLost: Set[TopicPartition] => 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.

Attributes

Companion
object
Source
RebalanceListener.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Source
RebalanceListener.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object StreamControl

Attributes

Companion
trait
Source
StreamControl.scala
Supertypes
class Object
trait Matchable
class Any
Self type
trait StreamControl[-R, +E, +A]

Attributes

Companion
object
Source
StreamControl.scala
Supertypes
class Object
trait Matchable
class Any
object Subscription

Attributes

Companion
trait
Source
Subscription.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait Subscription

Attributes

Companion
object
Source
Subscription.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Manual
class Pattern
class Topics