Class: Anschel::Output::Base

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

Direct Known Subclasses

Device, Elasticsearch

Instance Method Summary collapse

Instance Method Details

#push(event) ⇒ Object



10
# File 'lib/anschel/output/base.rb', line 10

def push event ; @queue.push event end

#stopObject



4
5
6
7
8
# File 'lib/anschel/output/base.rb', line 4

def stop
  return if @stopped
  @thread.kill
  @stopped = true
end