Method: Kafka::FFI::Message#offset

Defined in:
lib/kafka/ffi/message.rb

#offsetInteger, RD_KAFKA_OFFSET_INVALID

Returns the message’s offset as published in the topic’s partition. When error != nil, offset the error occurred at.

Returns:



71
72
73
# File 'lib/kafka/ffi/message.rb', line 71

def offset
  self[:offset]
end