Type:
Class

A NotifyTemplateEntry is returned by Rinda::TupleSpace#notify and is notified of TupleSpace changes. You may receive either your subscribed event or the 'close' event when iterating over notifications.

See TupleSpace#notify_event for valid notification types.

Example

ts = Rinda::TupleSpace.new
observer = ts.notify 'write', [nil]

Thread.start do
  observer.each { |t| p t }
end

3.times { |i| ts.write [i] }

Outputs:

['write', [0]]
['write', [1]]
['write', [2]]
new

new(place, event, tuple, expires=nil) Class Public methods Creates a new

2015-05-08 03:04:29
each

each() Instance Public methods Yields event/tuple pairs until this

2015-05-08 03:11:09
notify

notify(ev) Instance Public methods Called by

2015-05-08 03:15:06
pop

pop() Instance Public methods Retrieves a notification. Raises

2015-05-08 03:21:14