PravegaStream

zio.pravega.PravegaStream
See thePravegaStream companion object

Pravega Stream API.

This API is a wrapper around the Pravega Java API.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def eventStream[A](readerGroupName: String, settings: ReaderSettings[A]): Stream[Throwable, EventRead[A]]

Stream (source) of events of elements.

Stream (source) of events of elements.

Attributes

def sharedTransactionalSink[A](streamName: String, settings: WriterSettings[A]): Sink[Throwable, A, Nothing, UUID]

Sink that writes to a transactional stream, transaction stays open after the sink is closed.

Sink that writes to a transactional stream, transaction stays open after the sink is closed.

The transaction id is generated by the writer, once the transaction is effectively created, the transaction id is completed in the promise.

The transaction is not committed or aborted by the writer, and can be used by other writers, localy or remotely.

Attributes

def sharedTransactionalSink[A](streamName: String, txUUID: UUID, settings: WriterSettings[A], commitOnExit: Boolean): Sink[Throwable, A, Nothing, Unit]

Sink that writes to a transactional stream, transaction stays open after the sink is closed.

Sink that writes to a transactional stream, transaction stays open after the sink is closed.

The transaction id is provided by the caller.

The transaction may be committed by the writer.

Attributes

def sink[A](streamName: String, settings: WriterSettings[A]): Sink[Throwable, A, Nothing, Unit]

Sink that writes to a stream.

Sink that writes to a stream.

Attributes

def stream[A](readerGroupName: String, settings: ReaderSettings[A]): Stream[Throwable, A]

Stream (source) of elements.

Stream (source) of elements.

Attributes

def transactionalSink[A](streamName: String, settings: WriterSettings[A]): Sink[Throwable, A, Nothing, Unit]

Sink that writes to a transactional stream.

Sink that writes to a transactional stream.

Transaction is created by the writer, and committed or aborted by the writer regarding of the status of the stream scope.

Attributes

def write[A](streamName: String, settings: WriterSettings[A], a: List[A]): ZIO[Any, Throwable, Unit]

Writes atomicaly events to a stream.

Writes atomicaly events to a stream.

Attributes

def writeFlow[A](streamName: String, settings: WriterSettings[A]): ZPipeline[Any, Throwable, A, A]

Creates a ZPipeline that writes to a stream.

Creates a ZPipeline that writes to a stream.

Attributes