Class: Droonga::Plugins::AsyncCommand::Handler

Inherits:
Handler
  • Object
show all
Defined in:
lib/droonga/plugin/async_command.rb

Direct Known Subclasses

Dump::Handler, System::AbsorbDataHandler

Instance Attribute Summary

Attributes inherited from Handler

#label, #loop, #messenger

Instance Method Summary collapse

Methods inherited from Handler

action, #initialize, message

Methods included from Droonga::Pluggable

#find_sub_classes, #options

Constructor Details

This class inherits a constructor from Droonga::Handler

Instance Method Details

#handle(message) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/droonga/plugin/async_command.rb', line 52

def handle(message)
  request = request_class.new(message)
  if request.need_start?
    start(request)
    {
      "started" => true,
    }
  else
    {
      "started" => false,
    }
  end
end