Class: Fluent::ExecUtil::MessagePackParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/fluent/plugin/exec_util.rb

Instance Method Summary collapse

Methods inherited from Parser

#initialize

Constructor Details

This class inherits a constructor from Fluent::ExecUtil::Parser

Instance Method Details

#call(io) ⇒ Object



86
87
88
89
90
91
92
# File 'lib/fluent/plugin/exec_util.rb', line 86

def call(io)
  @u = Fluent::Engine.msgpack_factory.unpacker(io)
  begin
    @u.each(&@on_message)
  rescue EOFError
  end
end