StreamService

zio.pravega.saga.StreamService

A stream service is a service that is implemented as a stream of events.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def serviceLoop[R, Event, Error](eventStream: ZStream[PravegaStream, Error, Event])(handler: Event => ZIO[R, Error, Unit]): ZIO[PravegaStream & R, Error, Unit]

A stream of commands.

A stream of commands.

Value parameters

eventStream

stream of events

handler

function to execute the command

Attributes