Class Ruote::HashParticipant
In: lib/ruote/part/hash_participant.rb
Parent: Object

Storing workitems in-memory. Mainly used for testing purposes, but could prove useful for a transient ruote engine.

Methods

cancel   consume   do_not_thread   each   first   new   reply   size  

Included Modules

LocalParticipant Enumerable

Public Class methods

Public Instance methods

Makes sure to remove the workitem from the in-memory hash.

No need for a separate thread when delivering to this participant.

Iterates over the workitems stored in here.

A convenience method (especially when testing), returns the first (only ?) workitem in the participant.

Removes the workitem from the in-memory hash and replies to the engine.

Returns the count of workitems stored in this participant.

[Validate]