In Files

  • drb/timeridconv.rb

Methods

DRb::TimerIdConv

Timer id conversion keeps objects alive for a certain amount of time after their last access. The default time period is 600 seconds and can be changed upon initialization.

To use TimerIdConv:

DRb.install_id_conv TimerIdConv.new 60 # one minute

Public Class Methods

new(timeout=600) click to toggle source

Creates a new TimerIdConv which will hold objects for timeout seconds.

 
               # File drb/timeridconv.rb, line 84
def initialize(timeout=600)
  @holder = TimerHolder2.new(timeout)
end