Class: Fluent::GroongaInput::Repeater
- Inherits:
-
Coolio::TCPSocket
- Object
- Coolio::TCPSocket
- Fluent::GroongaInput::Repeater
- Defined in:
- lib/fluent/plugin/in_groonga.rb
Instance Method Summary collapse
-
#initialize(socket, handler) ⇒ Repeater
constructor
A new instance of Repeater.
- #on_close ⇒ Object
- #on_read(data) ⇒ Object
Constructor Details
#initialize(socket, handler) ⇒ Repeater
Returns a new instance of Repeater.
66 67 68 69 |
# File 'lib/fluent/plugin/in_groonga.rb', line 66 def initialize(socket, handler) super(socket) @handler = handler end |
Instance Method Details
#on_close ⇒ Object
75 76 77 |
# File 'lib/fluent/plugin/in_groonga.rb', line 75 def on_close @handler.close end |
#on_read(data) ⇒ Object
71 72 73 |
# File 'lib/fluent/plugin/in_groonga.rb', line 71 def on_read(data) @handler.write(data) end |