Class: Fluent::GroongaInput::Repeater

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

Instance Method Summary (collapse)

Constructor Details

- (Repeater) initialize(socket, handler)

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

- (Object) on_close



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

def on_close
  @handler.close
end

- (Object) on_read(data)



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

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