Class: Emque::Producing::Configuration
- Inherits:
-
Object
- Object
- Emque::Producing::Configuration
- Defined in:
- lib/emque/producing/configuration.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#error_handlers ⇒ Object
Returns the value of attribute error_handlers.
-
#kafka_options ⇒ Object
Returns the value of attribute kafka_options.
-
#log_publish_message ⇒ Object
Returns the value of attribute log_publish_message.
-
#publish_messages ⇒ Object
Returns the value of attribute publish_messages.
-
#publishing_adapter ⇒ Object
Returns the value of attribute publishing_adapter.
-
#rabbitmq_options ⇒ Object
Returns the value of attribute rabbitmq_options.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/emque/producing/configuration.rb', line 12 def initialize @app_name = "" @publishing_adapter = :rabbitmq @error_handlers = [] = false = true = { :seed_brokers => ["localhost:9092"], :producer_options => {} } = { :url => "amqp://guest:guest@localhost:5672" } end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
4 5 6 |
# File 'lib/emque/producing/configuration.rb', line 4 def app_name @app_name end |
#error_handlers ⇒ Object
Returns the value of attribute error_handlers.
8 9 10 |
# File 'lib/emque/producing/configuration.rb', line 8 def error_handlers @error_handlers end |
#kafka_options ⇒ Object
Returns the value of attribute kafka_options.
6 7 8 |
# File 'lib/emque/producing/configuration.rb', line 6 def end |
#log_publish_message ⇒ Object
Returns the value of attribute log_publish_message.
9 10 11 |
# File 'lib/emque/producing/configuration.rb', line 9 def end |
#publish_messages ⇒ Object
Returns the value of attribute publish_messages.
10 11 12 |
# File 'lib/emque/producing/configuration.rb', line 10 def end |
#publishing_adapter ⇒ Object
Returns the value of attribute publishing_adapter.
5 6 7 |
# File 'lib/emque/producing/configuration.rb', line 5 def publishing_adapter @publishing_adapter end |
#rabbitmq_options ⇒ Object
Returns the value of attribute rabbitmq_options.
7 8 9 |
# File 'lib/emque/producing/configuration.rb', line 7 def end |