final case class BatchedStream(topic: Subscription, consumerSettings: ConsumerSettings, batchSize: Int, batchLimit: FiniteDuration, keyDeserializer: Deserializer[Any, DynamicJson], valueDeserializer: Deserializer[Any, DynamicJson], blockOnCommit: Boolean)
- Companion:
- object
Value members
Concrete methods
A convenience method to execute (and commit) a thunk on each record
A convenience method to execute (and commit) a thunk on each record
- Value parameters:
- onBatchThunk
the job to run on each batch
- Returns:
a stream of batch sizes
A convenience method to execute some 'persist' thunk which, on success, will kermit the offsets back to kafka
A convenience method to execute some 'persist' thunk which, on success, will kermit the offsets back to kafka
- Value parameters:
- onBatchThunk
the job to run on each batch
- Returns:
a stream of batch sizes