TupleSpaceProxy allows a remote Tuplespace to appear as local.

Methods
N
R
T
W
Class Public methods
new(ts)

Creates a new TupleSpaceProxy to wrap ts.

# File lib/rinda/rinda.rb, line 213
def initialize(ts)
  @ts = ts
end
Instance Public methods
notify(ev, tuple, sec=nil)

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

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

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

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

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

# File lib/rinda/rinda.rb, line 244
def read_all(tuple)
  @ts.read_all(tuple)
end
take(tuple, sec=nil, &block)

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

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

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

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