← ZIO Kafka docs

PartitionStreamControl

zio.kafka.consumer.internal.PartitionStreamControl
See thePartitionStreamControl companion object

Provides control and information over a stream that consumes from a partition.

Value parameters

completedPromise

the last pulled offset (if any). The promise completes when the stream completed.

dataQueue

the queue the stream reads records from, each success element is a chunk of records that were offered together, and correspond to the records fetched in a single poll for this partition, Exit.failure(None) is used to indicate the last element.

interruptionPromise

a promise that when completed stops the stream

maxStreamPullInterval

see zio.kafka.consumer.ConsumerSettings.withMaxStreamPullInterval()

queueInfoRef

used to track the stream's pull deadline, its queue size, and last pulled offset

stream

the stream

tp

topic and partition

Attributes

Companion
object
Source
PartitionStreamControl.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Attributes

Returns

the number of polls there are records idling in the queue. It is increased on every poll (when the queue is nonEmpty) and reset to 0 when the stream pulls the records

Source
PartitionStreamControl.scala
def queueSize: UIO[Int]

Attributes

Source
PartitionStreamControl.scala

Concrete fields

val tp: TopicPartition

Attributes

Source
PartitionStreamControl.scala