Class: CC::Kafka::Producer::Poseidon
- Inherits:
-
Object
- Object
- CC::Kafka::Producer::Poseidon
- Defined in:
- lib/cc/kafka/producer/poseidon.rb
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(host, port, topic, client_id) ⇒ Poseidon
constructor
A new instance of Poseidon.
- #send_message(message, key) ⇒ Object
Constructor Details
#initialize(host, port, topic, client_id) ⇒ Poseidon
Returns a new instance of Poseidon.
7 8 9 10 11 |
# File 'lib/cc/kafka/producer/poseidon.rb', line 7 def initialize(host, port, topic, client_id) @brokers = ["#{host}:#{port}"] @topic = topic @client_id = client_id end |
Instance Method Details
#close ⇒ Object
20 21 22 |
# File 'lib/cc/kafka/producer/poseidon.rb', line 20 def close producer.close end |