Class: Pubsubstub::StreamAction

Inherits:
Action
  • Object
show all
Includes:
Logging
Defined in:
lib/pubsubstub/stream_action.rb

Instance Method Summary collapse

Methods included from Logging

#debug, #error, #info

Constructor Details

#initializeStreamAction

Returns a new instance of StreamAction.



5
6
7
8
9
# File 'lib/pubsubstub/stream_action.rb', line 5

def initialize(*)
  super
  @subscriptions = Set.new
  @mutex = Mutex.new
end

Instance Method Details

#callObject



26
27
28
29
# File 'lib/pubsubstub/stream_action.rb', line 26

def call(*)
  spawn_helper_threads
  super
end