KafkaBatcher.Behaviours.TempStorage behaviour (kafka_batcher v1.0.0)
KafkaBatcher.Behaviours.TempStorage behaviour is used to implement events saving logic in case when Kafka is not available.
Summary
Types
Link to this type
topic_name()
@type topic_name() :: String.t()
Callbacks
Link to this callback
empty?(topic_name)
@callback empty?(topic_name()) :: boolean()
Check if the storage is empty
Link to this callback
save_batch(t)
@callback save_batch(KafkaBatcher.TempStorage.Batch.t()) :: :ok
Save batch to retry