Class: MessageQueue::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/message_queue/base.rb

Direct Known Subclasses

Kestrel, Rabbit

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optsObject (readonly)

Returns the value of attribute opts.



3
4
5
# File 'lib/message_queue/base.rb', line 3

def opts
  @opts
end

Instance Method Details

#clientObject



10
# File 'lib/message_queue/base.rb', line 10

def client;               end

#confirm(queue) ⇒ Object



7
# File 'lib/message_queue/base.rb', line 7

def confirm(queue);       end

#delete(queue) ⇒ Object



9
# File 'lib/message_queue/base.rb', line 9

def delete(queue);        end

#dequeue(queue) ⇒ Object



6
# File 'lib/message_queue/base.rb', line 6

def dequeue(queue);       end

#enqueue(queue, data) ⇒ Object



5
# File 'lib/message_queue/base.rb', line 5

def enqueue(queue, data); end

#queue_size(queue) ⇒ Object



4
# File 'lib/message_queue/base.rb', line 4

def queue_size(queue);    end

#stopObject



11
# File 'lib/message_queue/base.rb', line 11

def stop;                 end

#subscribe(queue) ⇒ Object



8
# File 'lib/message_queue/base.rb', line 8

def subscribe(queue);     end

#subscribe?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/message_queue/base.rb', line 13

def subscribe?
  false
end