franz

package franz

Type members

Classlikes

case
class BatchedStream[K, V](topic: Subscription, consumerSettings: ConsumerSettings, batchSize: Int, batchLimit: FiniteDuration, keyDeserializer: Deserializer[Any, K], valueDeserializer: Deserializer[Any, V], blockOnCommit: Boolean)
Companion
object

A Kafka stream which will batch up records by the least of either a time-window or max-size, and then use the provided 'persist' function on each batch

A Kafka stream which will batch up records by the least of either a time-window or max-size, and then use the provided 'persist' function on each batch

Companion
class
object DataGen

Code which knows how to create test json from an avro schema

Code which knows how to create test json from an avro schema

Companion
class
final case
class FranzConfig(franzConfig: Config)
Companion
object
final case
class KafkaRecord[K, A](topic: String, key: K, timestamp: Long, offset: Offset, recordBody: A, headers: Map[String, String])

Our own representation of the deserialized data

Our own representation of the deserialized data

Value Params
key

the record key

offset

the commit offset

recordBody

the deserialized message body

timestamp

the kafka record timestamp

Companion
object
Companion
class
object SchemaGen
final case
class Seed(long: Long)
Companion
object
object Seed
Companion
class
case
class State[S, A](run: S => (A, S))
Companion
object
object State
Companion
class
sealed
trait SupportedType[A]

This is used to be able to create a particular type from a json input.

This is used to be able to create a particular type from a json input.

It's used by the KafkaPublishService in order to shove in ProducerRecord's from user REST input

Companion
object
Companion
class