Class: Kafka::Protocol::ProduceResponse::PartitionInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PartitionInfo.



16
17
18
19
20
21
# File 'lib/kafka/protocol/produce_response.rb', line 16

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

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



14
15
16
# File 'lib/kafka/protocol/produce_response.rb', line 14

def error_code
  @error_code
end

#offsetObject (readonly)

Returns the value of attribute offset.



14
15
16
# File 'lib/kafka/protocol/produce_response.rb', line 14

def offset
  @offset
end

#partitionObject (readonly)

Returns the value of attribute partition.



14
15
16
# File 'lib/kafka/protocol/produce_response.rb', line 14

def partition
  @partition
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



14
15
16
# File 'lib/kafka/protocol/produce_response.rb', line 14

def timestamp
  @timestamp
end