Method: Fluent::Plugin::Buffer#close
- Defined in:
- lib/fluent/plugin/buffer.rb
#close ⇒ Object
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/fluent/plugin/buffer.rb', line 269 def close super synchronize do log.debug "closing buffer", instance: self.object_id @dequeued.each_pair do |chunk_id, chunk| chunk.close end until @queue.empty? @queue.shift.close end @stage.each_pair do |, chunk| chunk.close end end end |