Class: LogStash::Util::WrappedAckedQueue::WriteBatch

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/util/wrapped_acked_queue.rb

Instance Method Summary collapse

Constructor Details

#initializeWriteBatch

Returns a new instance of WriteBatch.



331
332
333
# File 'lib/logstash/util/wrapped_acked_queue.rb', line 331

def initialize
  @events = []
end

Instance Method Details

#each(&blk) ⇒ Object



340
341
342
343
344
# File 'lib/logstash/util/wrapped_acked_queue.rb', line 340

def each(&blk)
  @events.each do |e|
    blk.call(e)
  end
end

#push(event) ⇒ Object Also known as: <<



335
336
337
# File 'lib/logstash/util/wrapped_acked_queue.rb', line 335

def push(event)
  @events.push(event)
end