Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • rinda/rinda.rb



TupleSpaceProxy allows a remote Tuplespace to appear as local.

Public Class Methods

new(ts) click to toggle source

Creates a new TupleSpaceProxy to wrap ts.

               # File rinda/rinda.rb, line 213
def initialize(ts)
  @ts = ts

Public Instance Methods

notify(ev, tuple, sec=nil) click to toggle source

Registers for notifications of event ev on the proxied TupleSpace. See Rinda::TupleSpace#notify

               # File rinda/rinda.rb, line 252
def notify(ev, tuple, sec=nil)
  @ts.notify(ev, tuple, sec)
read(tuple, sec=nil, &block) click to toggle source

Reads tuple from the proxied TupleSpace. See Rinda::TupleSpace#read.

               # File rinda/rinda.rb, line 236
def read(tuple, sec=nil, &block)
  @ts.read(tuple, sec, &block)
read_all(tuple) click to toggle source

Reads all tuples matching tuple from the proxied TupleSpace. See Rinda::TupleSpace#read_all.

               # File rinda/rinda.rb, line 244
def read_all(tuple)
take(tuple, sec=nil, &block) click to toggle source

Takes tuple from the proxied TupleSpace. See Rinda::TupleSpace#take.

               # File rinda/rinda.rb, line 227
def take(tuple, sec=nil, &block)
  port = []
  @ts.move(DRbObject.new(port), tuple, sec, &block)
write(tuple, sec=nil) click to toggle source

Adds tuple to the proxied TupleSpace. See Rinda::TupleSpace#write.

               # File rinda/rinda.rb, line 220
def write(tuple, sec=nil)
  @ts.write(tuple, sec)

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus