DynamicConsumerFake

nl.vroste.zio.kinesis.client.dynamicconsumer.fake.DynamicConsumerFake

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def shardsFromIterables[R, T](serializer: Serializer[R, T], lists: List[T]*): ZStream[Any, Nothing, (String, ZStream[R, Throwable, Chunk[Byte]])]

A constructor for a fake shard, for use with the DynamicConsumer.fake ZLayer function. It takes a list of List[T] and produces a ZStream of fake shards from it.

A constructor for a fake shard, for use with the DynamicConsumer.fake ZLayer function. It takes a list of List[T] and produces a ZStream of fake shards from it.

Type parameters

R

Environment for Serializer

T

Type of the list element

Value parameters

lists

list of shards - each shard is represented by a List of T

serializer

A Serializer used to convert elements to the Chunk[Byte] type expected by DynamicConsumer

Attributes

Returns

A ZStream of fake shard with a generated shard name of the form shardN, where N is a zero based index

See also

DynamicConsumer.fake

def shardsFromStreams[R, T](serializer: Serializer[R, T], streams: ZStream[R, Throwable, T]*): ZStream[Any, Nothing, (String, ZStream[R, Throwable, Chunk[Byte]])]

A constructor for a fake shard, for use with the DynamicConsumer.fake ZLayer function. It takes a list ZStream of type T and produces a ZStream of fake shards from it.

A constructor for a fake shard, for use with the DynamicConsumer.fake ZLayer function. It takes a list ZStream of type T and produces a ZStream of fake shards from it.

Type parameters

R

Environment for Serializer

T

Type of the ZStream element

Value parameters

serializer

A Serializer used to convert elements to the Chunk[Byte] type expected by DynamicConsumer

streams

list of shards - each shard is represented by a ZStream of T

Attributes

Returns

A ZStream of fake shard with a generated shard name of the form shardN, where N is a zero based index

See also

DynamicConsumer.fake