Class: Ostrich::CommandHandler
- Inherits:
-
Object
- Object
- Ostrich::CommandHandler
- Defined in:
- lib/ostrich-jruby/command_handler.rb
Constant Summary collapse
- DEFAULT_MIN_DURATION =
Util::Duration.from_seconds(60)
Instance Attribute Summary collapse
-
#handler ⇒ Object
readonly
Returns the value of attribute handler.
Instance Method Summary collapse
-
#initialize(stats_collection, min_period = DEFAULT_MIN_DURATION) ⇒ CommandHandler
constructor
A new instance of CommandHandler.
Constructor Details
#initialize(stats_collection, min_period = DEFAULT_MIN_DURATION) ⇒ CommandHandler
Returns a new instance of CommandHandler.
9 10 11 |
# File 'lib/ostrich-jruby/command_handler.rb', line 9 def initialize(stats_collection, min_period = DEFAULT_MIN_DURATION) @handler = handler_class.new(nil, stats_collection, min_period) end |
Instance Attribute Details
#handler ⇒ Object (readonly)
Returns the value of attribute handler.
5 6 7 |
# File 'lib/ostrich-jruby/command_handler.rb', line 5 def handler @handler end |