Method: Qup::TopicAPI#subscriber

Defined in:
lib/qup/topic_api.rb

#subscriber(name) ⇒ Object

Public: Create a subscriber for the Topic

name - the String name of the subscriber

Creating a subscriber creates a new Subscriber that will receive a copy of every message that is published to the Topic.

Subscribers are unique by name, two subscribers with the same name will act as individual Consumers on a queue of their name.

Returns a Subscriber

Raises:

  • (NotImplementedError)


48
49
50
# File 'lib/qup/topic_api.rb', line 48

def subscriber( name )
  raise NotImplementedError, "please implement 'subscriber'"
end