Class: QPush::Server::Heartbeat
- Inherits:
-
Object
- Object
- QPush::Server::Heartbeat
- Defined in:
- lib/qpush/server/heartbeat.rb
Overview
The Heartbeat worker periodically updates the heart namespace. The key is set with an expiry. This helps to indicate if the QPush server is currently active.
Instance Method Summary collapse
-
#initialize ⇒ Heartbeat
constructor
A new instance of Heartbeat.
-
#shutdown ⇒ Object
Shutsdown our heartbeat process.
-
#start ⇒ Object
Starts our perform process.
Constructor Details
#initialize ⇒ Heartbeat
Returns a new instance of Heartbeat.
8 9 10 |
# File 'lib/qpush/server/heartbeat.rb', line 8 def initialize @done = false end |
Instance Method Details
#shutdown ⇒ Object
Shutsdown our heartbeat process.
23 24 25 |
# File 'lib/qpush/server/heartbeat.rb', line 23 def shutdown @done = true end |