Class: Chasqui::Config
- Inherits:
-
Struct
- Object
- Struct
- Chasqui::Config
- Defined in:
- lib/chasqui/config.rb
Overview
Stores and manages all Chasqui configuration settings.
Instance Attribute Summary collapse
-
#broker_poll_interval ⇒ Fixnum
How long the broker daemon waits for an event before pausing to handle signals.
-
#channel_prefix ⇒ String
A string to prepend to channel names for all published events.
-
#default_queue ⇒ String
The queue to use when a worker class does not define a queue and a queue option is not supplied to #on.
-
#inbox_queue ⇒ String
The queue that stores published events until they are delivered to subscriber (worker) queues.
-
#logger ⇒ Logger
The logger to use for the Chasqui broker.
-
#queue_adapter ⇒ Chasqui::QueueAdapter
private
The queue adapter to use for binding queues to channels.
-
#redis ⇒ Redis, ...
Customize the Redis databse connection Chasqui uses.
-
#worker_backend ⇒ Symbol
The type of worker that will handle events in class to subscribe.
Instance Attribute Details
#broker_poll_interval ⇒ Fixnum
How long the broker daemon waits for an event before pausing to handle signals. Default: 3
|
# File 'lib/chasqui/config.rb', line 22
|
#channel_prefix ⇒ String
A string to prepend to channel names for all published events. This is useful for namespacing channel names to prevent collisions with other applications that may choose the same channel name for a different type of event. Default: nil
|
# File 'lib/chasqui/config.rb', line 27
|
#default_queue ⇒ String
The queue to use when a worker class does not define a queue and a queue option is not supplied to #on. Default: “chasqui-workers”
|
# File 'lib/chasqui/config.rb', line 43
|
#inbox_queue ⇒ String
The queue that stores published events until they are delivered to subscriber (worker) queues. Default: “chasqui-inbox”
|
# File 'lib/chasqui/config.rb', line 49
|
#logger ⇒ Logger
The logger to use for the Chasqui broker. Default: Logger.new(STDOUT)
|
# File 'lib/chasqui/config.rb', line 54
|
#queue_adapter ⇒ Chasqui::QueueAdapter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The queue adapter to use for binding queues to channels.
|
# File 'lib/chasqui/config.rb', line 58
|
#redis ⇒ Redis, ...
Customize the Redis databse connection Chasqui uses. Default: “redis://localhost:6379/0”
|
# File 'lib/chasqui/config.rb', line 63
|
#worker_backend ⇒ Symbol
The type of worker that will handle events in class to Chasqui.subscribe. Can be either resque
or sidekiq
. Chasqui will attempt to auto-detect the worker_backend
if either library is loaded. Default: nil
|
# File 'lib/chasqui/config.rb', line 68
|