Class: Droonga::Handler
- Inherits:
-
Object
- Object
- Droonga::Handler
- Extended by:
- Pluggable
- Includes:
- ErrorMessages, Loggable
- Defined in:
- lib/droonga/handler.rb
Direct Known Subclasses
Plugins::CRUD::Handler, Plugins::Catalog::FetchHandler, Plugins::Dump::Handler, Plugins::Groonga::ColumnCreate::Handler, Plugins::Groonga::ColumnList::Handler, Plugins::Groonga::ColumnRemove::Handler, Plugins::Groonga::ColumnRename::Handler, Plugins::Groonga::Delete::Handler, Plugins::Groonga::TableCreate::Handler, Plugins::Groonga::TableList::Handler, Plugins::Groonga::TableRemove::Handler, Plugins::Search::Handler, Plugins::System::StatusHandler, Plugins::Watch::FeedHandler, Plugins::Watch::SubscribeHandler, Plugins::Watch::SweepHandler, Plugins::Watch::UnsubscribeHandler
Instance Attribute Summary collapse
-
#loop ⇒ Object
readonly
Returns the value of attribute loop.
-
#messenger ⇒ Object
readonly
Returns the value of attribute messenger.
Class Method Summary collapse
Instance Method Summary collapse
- #handle(message) ⇒ Object
-
#initialize(name, context, messenger, loop) ⇒ Handler
constructor
A new instance of Handler.
Methods included from Pluggable
Constructor Details
#initialize(name, context, messenger, loop) ⇒ Handler
Returns a new instance of Handler.
39 40 41 42 43 44 |
# File 'lib/droonga/handler.rb', line 39 def initialize(name, context, messenger, loop) @name = name @context = context @messenger = messenger @loop = loop end |
Instance Attribute Details
#loop ⇒ Object (readonly)
Returns the value of attribute loop.
38 39 40 |
# File 'lib/droonga/handler.rb', line 38 def loop @loop end |
#messenger ⇒ Object (readonly)
Returns the value of attribute messenger.
38 39 40 |
# File 'lib/droonga/handler.rb', line 38 def messenger @messenger end |
Class Method Details
.action ⇒ Object
33 34 35 |
# File 'lib/droonga/handler.rb', line 33 def action Plugin::Metadata::HandlerAction.new(self) end |
.message ⇒ Object
29 30 31 |
# File 'lib/droonga/handler.rb', line 29 def Plugin::Metadata::InputMessage.new(self) end |
Instance Method Details
#handle(message) ⇒ Object
46 47 |
# File 'lib/droonga/handler.rb', line 46 def handle() end |