Class: QRPC::Locator::EventedQueueLocator
- Inherits:
-
Object
- Object
- QRPC::Locator::EventedQueueLocator
- Defined in:
- lib/qrpc/locator/evented-queue.rb
Overview
Locator for ‘evented-queue’ queue type.
Defined Under Namespace
Classes: REUQ
Instance Attribute Summary collapse
-
#queue ⇒ EventedQueue::Recurring
(also: #input_queue, #output_queue)
Contains queue instance.
-
#queue_name ⇒ String
Contains queue name.
Instance Method Summary collapse
-
#default_queue ⇒ Object
Returns the default evented queue type.
-
#initialize(queue_name, queue = self.default_queue) ⇒ EventedQueueLocator
constructor
Constructor.
Constructor Details
#initialize(queue_name, queue = self.default_queue) ⇒ EventedQueueLocator
Constructor.
52 53 54 55 |
# File 'lib/qrpc/locator/evented-queue.rb', line 52 def initialize(queue_name, queue = self.default_queue) @queue = queue @queue_name = queue_name end |
Instance Attribute Details
#queue ⇒ EventedQueue::Recurring Also known as: input_queue, output_queue
Contains queue instance.
44 45 46 |
# File 'lib/qrpc/locator/evented-queue.rb', line 44 def queue @queue end |
#queue_name ⇒ String
Contains queue name.
36 37 38 |
# File 'lib/qrpc/locator/evented-queue.rb', line 36 def queue_name @queue_name end |
Instance Method Details
#default_queue ⇒ Object
Returns the default evented queue type.
61 62 63 |
# File 'lib/qrpc/locator/evented-queue.rb', line 61 def default_queue UnifiedQueues::Multi::new UnifiedQueues::Single, ::EM::Wrapper::new(REUQ), UnifiedQueues::Single, CPriorityQueue end |