Class: Fluent::GroongaInput::Repeater

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

Instance Method Summary (collapse)

Constructor Details

- (Repeater) initialize(socket, handler)

Returns a new instance of Repeater

[View source]

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

[View source]

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

def on_close
  @handler.close
end

- (Object) on_read(data)

[View source]

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

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