zio.kafka.consumer

Members list

Type members

Classlikes

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

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait Consumer

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Consumer

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Consumer.type
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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case object EmptyOffsetBatch extends OffsetBatch

Attributes

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

Supertypes
trait Product
trait Equals
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
sealed trait Offset

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Offset

Attributes

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

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object EmptyOffsetBatch.type
object OffsetBatch

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

A subset of Consumer methods available during rebalances.

A subset of Consumer methods available during rebalances.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Live

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

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
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait Subscription

Attributes

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

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type