Class: Kafka::ProducerRequest
- Inherits:
-
Object
- Object
- Kafka::ProducerRequest
- Defined in:
- lib/kafka/producer_request.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#partition ⇒ Object
Returns the value of attribute partition.
-
#topic ⇒ Object
Returns the value of attribute topic.
Instance Method Summary collapse
-
#initialize(topic, messages, options = {}) ⇒ ProducerRequest
constructor
A new instance of ProducerRequest.
Constructor Details
#initialize(topic, messages, options = {}) ⇒ ProducerRequest
Returns a new instance of ProducerRequest.
20 21 22 23 24 |
# File 'lib/kafka/producer_request.rb', line 20 def initialize(topic, , ={}) self.topic = topic self.partition = [:partition] || 0 self. = Array() end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
18 19 20 |
# File 'lib/kafka/producer_request.rb', line 18 def @messages end |
#partition ⇒ Object
Returns the value of attribute partition.
18 19 20 |
# File 'lib/kafka/producer_request.rb', line 18 def partition @partition end |
#topic ⇒ Object
Returns the value of attribute topic.
18 19 20 |
# File 'lib/kafka/producer_request.rb', line 18 def topic @topic end |