Class: Euston::Daemons::Pipeline::Snapshotter::Component

Inherits:
Euston::DaemonComponent show all
Defined in:
lib/euston-daemons/pipeline/lib/snapshotter/component.rb

Instance Method Summary collapse

Methods inherited from Euston::DaemonComponent

#run, #stop

Methods included from Exceptions

#ignorable_exception?

Constructor Details

#initialize(event_store, threshold, id = 1, logger = Euston::NullLogger.instance) ⇒ Component

Returns a new instance of Component.



6
7
8
9
10
11
# File 'lib/euston-daemons/pipeline/lib/snapshotter/component.rb', line 6

def initialize event_store, threshold, id = 1, logger = Euston::NullLogger.instance
  @event_store = event_store
  @threshold = threshold
  @id = id
  @log = logger
end