Class: BPS::Publisher::Abstract
- Inherits:
-
Object
- Object
- BPS::Publisher::Abstract
- Defined in:
- lib/bps/publisher/abstract.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Topic
Instance Method Summary collapse
-
#close ⇒ Object
Close the publisher.
-
#initialize ⇒ Abstract
constructor
A new instance of Abstract.
-
#topic(_name) ⇒ Object
Retrieve a topic handle.
Constructor Details
#initialize ⇒ Abstract
Returns a new instance of Abstract.
14 15 16 |
# File 'lib/bps/publisher/abstract.rb', line 14 def initialize ObjectSpace.define_finalizer(self, proc { close }) end |
Instance Method Details
#close ⇒ Object
Close the publisher.
25 |
# File 'lib/bps/publisher/abstract.rb', line 25 def close; end |
#topic(_name) ⇒ Object
Retrieve a topic handle.
20 21 22 |
# File 'lib/bps/publisher/abstract.rb', line 20 def topic(_name) raise 'not implemented' end |