DRb::TimerIdConv

class DRb::TimerIdConv

Parent:
DRb::DRbIdConv

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(keeping=600) Show source

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

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

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部