Class: BPS::Publisher::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/bps/publisher/abstract.rb

Direct Known Subclasses

InMem

Defined Under Namespace

Classes: Topic

Instance Method Summary collapse

Constructor Details

#initializeAbstract

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

#closeObject

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