るりまサーチ

最速Rubyリファレンスマニュアル検索!
165件ヒット [1-100件を表示] (0.035秒)
トップページ > クエリ:-[x] > ライブラリ:rinda/tuplespace[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

クラス

キーワード

検索結果

<< 1 2 > >>

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

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

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

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

@see Rinda::TupleEntry#expire...

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

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

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

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

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

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

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

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

@see Rinda::TupleEntry#canceled?

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

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

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

@see Rinda::TupleEntry#cancel

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

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

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

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

絞り込み条件を変える

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

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

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

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

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

@see Rinda::TupleEntry#[]

Rinda::TupleEntry#renew(sec_or_renewer) -> () (102.0)

タプルの有効期限を更新します。

タプルの有効期限を更新します。

sec_or_renewer によって以下のように更新されます。
* nil : 遠い未来(実質的に無限)を指定します。詳しくは Rinda::TupleEntry#expires 参照
* true : 直ちに有効期限切れになるよう指定します
* 数値 : 有効期限を現在から sec_or_renewer 秒後に指定します
* それ以外 : renew メソッドを持っていると仮定され、そのメソッドの呼び出し結果を用います。
renew メソッドは nil, true, 数値のいずれかを上のルールに従って返さなければなりません。

...

Rinda::TupleEntry#size -> Integer (102.0)

タプルのサイズ(配列の要素数/ハッシュテーブルのエントリー数)を返します

タプルのサイズ(配列の要素数/ハッシュテーブルのエントリー数)を返します

@see Rinda::TupleEntry#value

Rinda::TupleEntry#value -> Array | Hash (102.0)

管理対象のタプルを返します。

管理対象のタプルを返します。

Rinda::TupleSpace#notify(event, pattern, sec = nil) -> Rinda::NotifyTemplateEntry (102.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,...

絞り込み条件を変える

<< 1 2 > >>