← ZIO Kafka docs

StreamControl

zio.kafka.consumer.StreamControl
See theStreamControl companion object
trait StreamControl[-R, +E, +A]

Attributes

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

Members list

Value members

Abstract methods

def end: UIO[Unit]

Stops fetching data for all partitions associated with this subscription. The stream will end and the effect running the stream will eventually complete.

Stops fetching data for all partitions associated with this subscription. The stream will end and the effect running the stream will eventually complete.

Attributes

Returns

Effect that will complete immediately.

Source
StreamControl.scala
def stream: ZStream[R, E, A]

The stream associated with this subscription

The stream associated with this subscription

The stream should be run at most once. Running it more than once will result in chunks of records being divided over the streams. After ending, running the stream another time will not produce records

Attributes

Source
StreamControl.scala

Concrete methods

def map[R1 <: R, E1 >: E, B](f: ZStream[R, E, A] => ZStream[R1, E1, B]): StreamControl[R1, E1, B]
Implicitly added by StreamControlOps

Attributes

Source
StreamControl.scala