Object
Storing workitems in-memory. Mainly used for testing purposes, but could prove useful for a transient ruote engine.
Makes sure to remove the workitem from the in-memory hash.
# File lib/ruote/part/hash_participant.rb, line 55 def cancel (fei, flavour) @items.delete(fei.to_storage_id) end
# File lib/ruote/part/hash_participant.rb, line 48 def consume (workitem) @items[workitem.fei.to_storage_id] = workitem end
No need for a separate thread when delivering to this participant.
# File lib/ruote/part/hash_participant.rb, line 46 def do_not_thread; true; end
Iterates over the workitems stored in here.
# File lib/ruote/part/hash_participant.rb, line 77 def each (&block) @items.each { |i| block.call(i) } end
Generated with the Darkfish Rdoc Generator 2.