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.

 18 19 20 21 22 23
# File 'lib/kafka/protocol/produce_response.rb', line 18 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.

 16 17 18
# File 'lib/kafka/protocol/produce_response.rb', line 16 def error_code @error_code end

#offsetObject (readonly)

Returns the value of attribute offset.

 16 17 18
# File 'lib/kafka/protocol/produce_response.rb', line 16 def offset @offset end

#partitionObject (readonly)

Returns the value of attribute partition.

 16 17 18
# File 'lib/kafka/protocol/produce_response.rb', line 16 def partition @partition end

#timestampObject (readonly)

Returns the value of attribute timestamp.

 16 17 18
# File 'lib/kafka/protocol/produce_response.rb', line 16 def timestamp @timestamp end