lib/rubyonacid/factories/rinda.rb in rubyonacid-0.2.0 vs lib/rubyonacid/factories/rinda.rb in rubyonacid-0.3.0

- old
+ new

@@ -1,10 +1,11 @@ require 'rinda/rinda' require 'rubyonacid/factory' module RubyOnAcid +#Allows values to be sent over the network. For more information, see the Ruby standard library documentation for Rinda. class RindaFactory < Factory #Time in seconds to wait for a value before giving up and returning a default value for the given key. #Default is 0, which will return immediately. attr_accessor :timeout @@ -19,9 +20,10 @@ @timeout = timeout @default_factory = nil @prior_values = {} end + #Create the Rinda TupleSpace for clients to write to. def start_service DRb.start_service @space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, @uri)) end