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 data from

interruptionPromise

a promise that when completed stops the stream

maxPollInterval

see zio.kafka.consumer.ConsumerSettings.withMaxPollInterval

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
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

def queueSize: UIO[Int]

Concrete fields