Class Rinda::TupleSpaceProxy
In: rinda/rinda.rb
Parent: Object

TupleSpaceProxy allows a remote Tuplespace to appear as local.

Methods

new   notify   read   read_all   take   write  

Public Class methods

Creates a new TupleSpaceProxy to wrap ts.

[Source]

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

Public Instance methods

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

[Source]

# File rinda/rinda.rb, line 252
    def notify(ev, tuple, sec=nil)
      @ts.notify(ev, tuple, sec)
    end

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

[Source]

# File rinda/rinda.rb, line 236
    def read(tuple, sec=nil, &block)
      @ts.read(tuple, sec, &block)
    end

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

[Source]

# File rinda/rinda.rb, line 244
    def read_all(tuple)
      @ts.read_all(tuple)
    end

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

[Source]

# File rinda/rinda.rb, line 227
    def take(tuple, sec=nil, &block)
      port = []
      @ts.move(DRbObject.new(port), tuple, sec, &block)
      port[0]
    end

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

[Source]

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

[Validate]

ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.