Class: Rinda::SimpleRenewer
- Inherits:
-
Object
- Object
- Rinda::SimpleRenewer
- Includes:
- DRbUndumped
- Defined in:
- lib/rinda/rinda.rb
Overview
An SimpleRenewer allows a TupleSpace to check if a TupleEntry is still alive.
Instance Method Summary collapse
-
#initialize(sec = 180) ⇒ SimpleRenewer
constructor
Creates a new SimpleRenewer that keeps an object alive for another
sec
seconds. -
#renew ⇒ Object
Called by the TupleSpace to check if the object is still alive.
Constructor Details
#initialize(sec = 180) ⇒ SimpleRenewer
Creates a new SimpleRenewer that keeps an object alive for another sec
seconds.
315 316 317 |
# File 'lib/rinda/rinda.rb', line 315 def initialize(sec=180) @sec = sec end |
Instance Method Details
#renew ⇒ Object
Called by the TupleSpace to check if the object is still alive.
322 323 324 |
# File 'lib/rinda/rinda.rb', line 322 def renew @sec end |