るりまサーチ

最速Rubyリファレンスマニュアル検索!
192件ヒット [1-100件を表示] (0.013秒)
トップページ > クエリ:rinda/tuplespace[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. rinda/rinda new
  2. rinda/rinda rinda
  3. rinda/tuplespace []
  4. rinda/tuplespace new
  5. rinda/tuplespace size

ライブラリ

クラス

キーワード

検索結果

<< 1 2 > >>

Rinda::TupleSpace#notify(event, pattern, sec = nil) -> Rinda::NotifyTemplateEntry (8007.0)

event で指定した種類のイベントの監視を開始します。

...ント(文字列)
@param pattern 監視対象となるタプルのパターン
@param sec 監視期間の長さ(秒数)

=== 例
require 'rinda/tuplespace'

tuplespace = Rinda::TupleSpace.new
observer = tuplespace.notify("write", ["xyz", nil, nil])
Therad.new do
observer.each{|event,...

Rinda::TupleEntry#[](key) (8001.0)

タプルの key に対応する要素を返します。

タプルの key に対応する要素を返します。

Rinda::TupleEntry#value[key] を返します。

@param key 要素を指定するキー

@see Rinda::TupleEntry#fetch

Rinda::TupleEntry#alive? -> bool (8001.0)

タプルが有効である(期限切れでもなく、キャンセルされていない)ならば 真を返します。

タプルが有効である(期限切れでもなく、キャンセルされていない)ならば
真を返します。

@see Rinda::TupleEntry#canceled?, Rinda::TupleEntry#expired?

Rinda::TupleEntry#cancel -> () (8001.0)

タプルをキャンセルし、タプルスペースから取り除きます。

タプルをキャンセルし、タプルスペースから取り除きます。

すでにタプルスペースから取り除かれている場合には何もしません。

@see Rinda::TupleEntry#canceled?

Rinda::TupleEntry#canceled? -> bool (8001.0)

タプルが既にキャンセルされているならば真を返します。

タプルが既にキャンセルされているならば真を返します。

@see Rinda::TupleEntry#cancel

絞り込み条件を変える

Rinda::TupleEntry#expired? -> bool (8001.0)

タプルが既に期限切れになっているならば真を返します。

タプルが既に期限切れになっているならば真を返します。

@see Rinda::TupleEntry#expires, @see Rinda::TupleEntry#renew

Rinda::TupleEntry#expires -> Time (8001.0)

タプルの期限切れの時刻を返します。

タプルの期限切れの時刻を返します。

有効期限を無限に指定した場合、この時刻は Time.at(2**31-1)、つまり
Tue Jan 19 03:14:07 GMT Standard Time 2038 を返します。

@see Rinda::TupleEntry#expire

Rinda::TupleEntry#expires=(expires) (8001.0)

タプルの期限切れの時刻を指定します。

タプルの期限切れの時刻を指定します。

@param expires 期限切れの時刻(Time)

@see Rinda::TupleEntry#expires

Rinda::TupleEntry#fetch(key) -> object (8001.0)

タプルの key に対応する要素を返します。

タプルの key に対応する要素を返します。

Rinda::TupleEntry#value.fetch(key) を返します。

@param key 要素を指定するキー

@see Rinda::TupleEntry#[]
<< 1 2 > >>