Class: Fluent::GroongaInput::Repeater

Inherits:
Coolio::TCPSocket
  • Object
show all
Defined in:
lib/fluent/plugin/in_groonga.rb

Instance Method Summary collapse

Constructor Details

#initialize(socket, handler) ⇒ Repeater

Returns a new instance of Repeater.



64
65
66
67
# File 'lib/fluent/plugin/in_groonga.rb', line 64

def initialize(socket, handler)
  super(socket)
  @handler = handler
end

Instance Method Details

#on_closeObject



73
74
75
# File 'lib/fluent/plugin/in_groonga.rb', line 73

def on_close
  @handler.close
end

#on_read(data) ⇒ Object



69
70
71
# File 'lib/fluent/plugin/in_groonga.rb', line 69

def on_read(data)
  @handler.write(data)
end