Class: Kafka::Protocol::ListOffsetResponse::PartitionOffsetInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(partition:, error_code:, timestamp:, offset:) ⇒ PartitionOffsetInfo

Returns a new instance of PartitionOffsetInfo.



31
32
33
34
35
36
# File 'lib/kafka/protocol/list_offset_response.rb', line 31

def initialize(partition:, error_code:, timestamp:, offset:)
  @partition = partition
  @error_code = error_code
  @timestamp = timestamp
  @offset = offset
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



29
30
31
# File 'lib/kafka/protocol/list_offset_response.rb', line 29

def error_code
  @error_code
end

#offsetObject (readonly)

Returns the value of attribute offset.



29
30
31
# File 'lib/kafka/protocol/list_offset_response.rb', line 29

def offset
  @offset
end

#partitionObject (readonly)

Returns the value of attribute partition.



29
30
31
# File 'lib/kafka/protocol/list_offset_response.rb', line 29

def partition
  @partition
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



29
30
31
# File 'lib/kafka/protocol/list_offset_response.rb', line 29

def timestamp
  @timestamp
end