Class: Kafka::Producer
- Inherits:
-
Object
- Object
- Kafka::Producer
- Defined in:
- lib/fluent/plugin/kafka_producer_ext.rb
Instance Method Summary collapse
Instance Method Details
#produce2(value, topic:) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/fluent/plugin/kafka_producer_ext.rb', line 10 def produce2(value, topic:) create_time = Time.now = PendingMessage.new( value, nil, topic, nil, nil, create_time ) @target_topics.add(topic) @pending_message_queue.write() nil end |