Class: Droonga::HandlerPlugin

Inherits:
Plugin
  • Object
show all
Extended by:
PluginRegisterable
Defined in:
lib/droonga/handler_plugin.rb

Instance Method Summary collapse

Methods included from PluginRegisterable

command, extended, inherited, method_name, processable?, repository

Methods inherited from Plugin

#process, #processable?, #shutdown, #start

Constructor Details

#initialize(handler) ⇒ HandlerPlugin

Returns a new instance of HandlerPlugin.



24
25
26
27
28
# File 'lib/droonga/handler_plugin.rb', line 24

def initialize(handler)
  super()
  @handler = handler
  @context = @handler.context
end

Instance Method Details

#emit(value, name = nil) ⇒ Object



34
35
36
# File 'lib/droonga/handler_plugin.rb', line 34

def emit(value, name=nil)
  @handler.emit(value, name)
end

#envelopeObject



30
31
32
# File 'lib/droonga/handler_plugin.rb', line 30

def envelope
  @handler.envelope
end

#post(body, destination = nil) ⇒ Object



38
39
40
# File 'lib/droonga/handler_plugin.rb', line 38

def post(body, destination=nil)
  @handler.post(body, destination)
end

#prefer_synchronous?(command) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/droonga/handler_plugin.rb', line 42

def prefer_synchronous?(command)
  false
end