Class: Fluent::Plugin::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.



98
99
100
101
# File 'lib/fluent/plugin/in_groonga.rb', line 98

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

Instance Method Details

#on_closeObject



107
108
109
# File 'lib/fluent/plugin/in_groonga.rb', line 107

def on_close
  @handler.close
end

#on_read(data) ⇒ Object



103
104
105
# File 'lib/fluent/plugin/in_groonga.rb', line 103

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