TupleSpaceProxy
allows a remote Tuplespace to appear as local.
Creates a new TupleSpaceProxy
to wrap ts
.
Registers for notifications of event ev
on the proxied TupleSpace
. See TupleSpace#notify
# File lib/rinda/rinda.rb, line 280 def read(tuple, sec=nil, &block) @ts.read(tuple, sec, &block) end
Reads tuple
from the proxied TupleSpace
. See TupleSpace#read
.
Reads all tuples matching tuple
from the proxied TupleSpace
. See TupleSpace#read_all
.
# File lib/rinda/rinda.rb, line 271 def take(tuple, sec=nil, &block) Port.deliver do |port| @ts.move(DRbObject.new(port), tuple, sec, &block) end end
Takes tuple
from the proxied TupleSpace
. See TupleSpace#take
.
Adds tuple
to the proxied TupleSpace
. See TupleSpace#write
.
Ruby Core © 1993–2020 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.