kafka_consumer v2.0.0 KafkaConsumer.Consumer behaviour

Link to this section Summary

Link to this section Types

Link to this type message()
message() :: %KafkaConsumer.Message{attributes: term, crc: term, key: term, magic_byte: term, offset: term, partition: term, topic: term, value: term}
Link to this type state()
state() :: term

Link to this section Callbacks

Link to this callback handle_async(message) (optional)
handle_async(message) :: any
Link to this callback handle_sync(message, state) (optional)
handle_sync(message, state) ::
  {:ok, state} |
  {:ok, :ack, state}