Class: Kafka::Protocol::FetchResponse::FetchedPartition

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(partition:, error_code:, highwater_mark_offset:, messages:) ⇒ FetchedPartition

Returns a new instance of FetchedPartition.



24
25
26
27
28
29
# File 'lib/kafka/protocol/fetch_response.rb', line 24

def initialize(partition:, error_code:, highwater_mark_offset:, messages:)
  @partition = partition
  @error_code = error_code
  @highwater_mark_offset = highwater_mark_offset
  @messages = messages
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



21
22
23
# File 'lib/kafka/protocol/fetch_response.rb', line 21

def error_code
  @error_code
end

#highwater_mark_offsetObject (readonly)

Returns the value of attribute highwater_mark_offset.



22
23
24
# File 'lib/kafka/protocol/fetch_response.rb', line 22

def highwater_mark_offset
  @highwater_mark_offset
end

#messagesObject (readonly)

Returns the value of attribute messages.



22
23
24
# File 'lib/kafka/protocol/fetch_response.rb', line 22

def messages
  @messages
end

#partitionObject (readonly)

Returns the value of attribute partition.



21
22
23
# File 'lib/kafka/protocol/fetch_response.rb', line 21

def partition
  @partition
end