Class: Kafka::FetchedMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/kafka/fetched_message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, topic:, partition:) ⇒ FetchedMessage



11
12
13
14
15
# File 'lib/kafka/fetched_message.rb', line 11

def initialize(message:, topic:, partition:)
  @message = message
  @topic = topic
  @partition = partition
end

Instance Attribute Details

#partitionInteger (readonly)



9
10
11
# File 'lib/kafka/fetched_message.rb', line 9

def partition
  @partition
end

#topicString (readonly)



6
7
8
# File 'lib/kafka/fetched_message.rb', line 6

def topic
  @topic
end

Instance Method Details

#create_timeTime



33
34
35
# File 'lib/kafka/fetched_message.rb', line 33

def create_time
  @message.create_time
end

#headersHash<String, String>



38
39
40
# File 'lib/kafka/fetched_message.rb', line 38

def headers
  @message.headers
end

#is_control_recordBoolean



43
44
45
# File 'lib/kafka/fetched_message.rb', line 43

def is_control_record
  @message.is_control_record
end

#keyString



23
24
25
# File 'lib/kafka/fetched_message.rb', line 23

def key
  @message.key
end

#offsetInteger



28
29
30
# File 'lib/kafka/fetched_message.rb', line 28

def offset
  @message.offset
end

#valueString



18
19
20
# File 'lib/kafka/fetched_message.rb', line 18

def value
  @message.value
end