DynamicConsumerFake

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

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.

Attributes

R

Environment for Serializer

T

Type of the list element

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

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.

Attributes

R

Environment for Serializer

T

Type of the ZStream element

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

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