Class: Fluent::Compat::ExecUtil::MessagePackParser

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

Instance Method Summary collapse

Methods inherited from Parser

#initialize

Constructor Details

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

Instance Method Details

#call(io) ⇒ Object



102
103
104
105
106
107
108
# File 'lib/fluent/compat/exec_util.rb', line 102

def call(io)
  @u = Fluent::MessagePackFactory.msgpack_unpacker(io)
  begin
    @u.each(&@on_message)
  rescue EOFError
  end
end