Class: Smartware::ConnectionMonitor
- Inherits:
-
Object
- Object
- Smartware::ConnectionMonitor
- Defined in:
- lib/smartware/connection_monitor.rb
Instance Method Summary collapse
-
#initialize(timeout) ⇒ ConnectionMonitor
constructor
A new instance of ConnectionMonitor.
- #run ⇒ Object
Constructor Details
#initialize(timeout) ⇒ ConnectionMonitor
Returns a new instance of ConnectionMonitor.
3 4 5 6 |
# File 'lib/smartware/connection_monitor.rb', line 3 def initialize(timeout) @timeout = [ timeout / 5, 1 ].max @counter = @timeout end |